/**
 * Indiagram SMM Panel Styles
 * Modern Indian-friendly design with vibrant colors
 */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --success-color: #06D6A0;
    --warning-color: #FFD23F;
    --danger-color: #EE4266;
    --text-dark: #1A1A2E;
    --text-light: #6C757D;
    --bg-light: #F8F9FA;
    --border-color: #DEE2E6;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
}

/* Platform Header */
.indiagram-platform-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.indiagram-platform-header h2 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.indiagram-search-box {
    max-width: 500px;
}

.indiagram-service-search {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Category Section */
.indiagram-category-section {
    margin-bottom: 3rem;
}

.indiagram-category-title {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

/* Package Grid */
.indiagram-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* Package Card */
.indiagram-package-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.indiagram-package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.indiagram-package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.package-id {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.package-speed {
    color: var(--success-color);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: rgba(6, 214, 160, 0.1);
    border-radius: 4px;
}

.package-name {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    min-height: 2.8rem;
}

.package-pricing {
    margin: 1.5rem 0;
}

.price-main {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-unit {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

.package-details {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.detail-value {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Order Button */
.indiagram-order-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-color), #FF8C5A);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indiagram-order-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.indiagram-order-btn:active {
    transform: scale(0.98);
}

/* Show More Button */
.indiagram-show-more {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.indiagram-show-more:hover {
    border-color: var(--secondary-color);
    background: rgba(0, 78, 137, 0.05);
}

/* Modal */
.indiagram-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.indiagram-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-title {
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
    font-size: 1.5rem;
}

/* Form Styles */
.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.875rem;
}

.form-row input[type="text"],
.form-row input[type="url"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-row input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.75rem;
}

.service-display {
    background: var(--bg-light);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.total-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 1rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    text-align: center;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #FF8C5A);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

/* Payment Success */
.indiagram-payment-success {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: white;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.order-details {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .indiagram-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Loading Spinner */
.indiagram-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Messages */
.indiagram-error {
    background: rgba(238, 66, 102, 0.1);
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 600;
}

/* Success Messages */
.indiagram-success {
    background: rgba(6, 214, 160, 0.1);
    border: 2px solid var(--success-color);
    color: var(--success-color);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 600;
}
