/* 
 * SWWPA - Social Media Marketing Panel Styles
 * Organized by page sections and components
 */

/* =============================================================================
   GLOBAL STYLES
   ============================================================================= */

* { 
    font-family: 'Inter', sans-serif; 
}

/* =============================================================================
   BACKGROUND & GRADIENT STYLES
   ============================================================================= */

.gradient-bg {
    background: linear-gradient(135deg, #FF2D2D 0%, #FF7A00 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #FF2D2D 0%, #FF2D2D 50%, #FF7A00 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #FF2D2D 0%, #FF2D2D 30%, #FF7A00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================================================
   ANIMATION STYLES
   ============================================================================= */

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.loading {
    animation: spin 1s linear infinite;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-bar {
    transition: width 0.3s ease;
}

/* =============================================================================
   MODAL STYLES
   ============================================================================= */

.payment-modal {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.7);
    max-height: 90vh;
    overflow-y: auto;
}

.payment-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay {
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { transform: scale(0.9) translateY(-20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* =============================================================================
   NOTIFICATION STYLES
   ============================================================================= */

.notification {
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* =============================================================================
   SHADOW & VISUAL EFFECTS
   ============================================================================= */

.enhanced-shadow {
    box-shadow: 0 8px 32px rgba(93, 92, 222, 0.1);
}

.enhanced-shadow:hover {
    box-shadow: 0 12px 40px rgba(93, 92, 222, 0.2);
}

/* Platform-specific shadow colors */
.enhanced-shadow.instagram {
    box-shadow: 0 8px 32px rgba(225, 48, 108, 0.15);
}

.enhanced-shadow.instagram:hover {
    box-shadow: 0 12px 40px rgba(225, 48, 108, 0.25);
}

.enhanced-shadow.tiktok {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.enhanced-shadow.tiktok:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.enhanced-shadow.youtube {
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.15);
}

.enhanced-shadow.youtube:hover {
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.25);
}

.enhanced-shadow.facebook {
    box-shadow: 0 8px 32px rgba(24, 119, 242, 0.15);
}

.enhanced-shadow.facebook:hover {
    box-shadow: 0 12px 40px rgba(24, 119, 242, 0.25);
}

.enhanced-shadow.twitter {
    box-shadow: 0 8px 32px rgba(29, 161, 242, 0.15);
}

.enhanced-shadow.twitter:hover {
    box-shadow: 0 12px 40px rgba(29, 161, 242, 0.25);
}

.enhanced-shadow.spotify {
    box-shadow: 0 8px 32px rgba(30, 215, 96, 0.15);
}

.enhanced-shadow.spotify:hover {
    box-shadow: 0 12px 40px rgba(30, 215, 96, 0.25);
}

.enhanced-shadow.linkedin {
    box-shadow: 0 8px 32px rgba(0, 119, 181, 0.15);
}

.enhanced-shadow.linkedin:hover {
    box-shadow: 0 12px 40px rgba(0, 119, 181, 0.25);
}

.enhanced-shadow.discord {
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.15);
}

.enhanced-shadow.discord:hover {
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.25);
}

.enhanced-shadow.snapchat {
    box-shadow: 0 8px 32px rgba(255, 252, 0, 0.15);
}

.enhanced-shadow.snapchat:hover {
    box-shadow: 0 12px 40px rgba(255, 252, 0, 0.25);
}

.enhanced-shadow.google {
    box-shadow: 0 8px 32px rgba(66, 133, 244, 0.15);
}

.enhanced-shadow.google:hover {
    box-shadow: 0 12px 40px rgba(66, 133, 244, 0.25);
}

/* =============================================================================
   FORM STYLES
   ============================================================================= */

.custom-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.popular-badge {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* =============================================================================
   STRIPE PAYMENT STYLES
   ============================================================================= */

#payment-element {
    margin: 20px 0;
    min-height: 0;
}

.StripeElement {
    height: auto !important;
    min-height: 40px !important;
}

.StripeElement--focus {
    box-shadow: 0 1px 3px 0 #cfd7df !important;
}

.StripeElement--invalid {
    border-color: #fa755a !important;
}

.StripeElement--webkit-autofill {
    background-color: #fefde5 !important;
}

/* Payment modal scrollbar */
.payment-modal::-webkit-scrollbar {
    width: 6px;
}

.payment-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.payment-modal::-webkit-scrollbar-thumb {
    background: #FF2D2D;
    border-radius: 10px;
}

/* =============================================================================
   HOME PAGE SPECIFIC STYLES
   ============================================================================= */

.stats-counter {
    font-variant-numeric: tabular-nums;
}

.review-trustpilot {
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.review-trustpilot-left {
    margin-right: 8px;
    font-size: 25px;
}

.review-trustpilot-right {
    margin-left: 8px;
}

.review-trustpilot-right img {
    margin-left: 3px;
    margin-bottom: 3px;
}

.testimonial-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.platform-icon {
    transition: all 0.3s ease;
}

.platform-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.price-highlight {
    position: relative;
}

.price-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #FF2D2D, #FF7A00);
    border-radius: inherit;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* =============================================================================
   SERVICES PAGE SPECIFIC STYLES
   ============================================================================= */

.service-card-improved {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .service-card-improved {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =============================================================================
   USER PANEL STYLES
   ============================================================================= */

.chat-message {
    animation: slideInMessage 0.3s ease-out;
}

@keyframes slideInMessage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-container {
    height: 400px;
    overflow-y: auto;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #FF2D2D;
    border-radius: 10px;
}

.ticket-priority-high {
    border-left: 4px solid #ef4444;
}

.ticket-priority-medium {
    border-left: 4px solid #f59e0b;
}

.ticket-priority-low {
    border-left: 4px solid #FF2D2D;
}

/* =============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 768px) {
    .gradient-text {
        background: linear-gradient(135deg, #FF2D2D 0%, #FF7A00 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .enhanced-shadow {
        box-shadow: 0 4px 16px rgba(93, 92, 222, 0.1);
    }
    
    .enhanced-shadow:hover {
        box-shadow: 0 6px 20px rgba(93, 92, 222, 0.15);
    }
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    .gradient-bg,
    .gradient-bg-2 {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .enhanced-shadow {
        box-shadow: none !important;
    }
    
    .modal-overlay,
    .payment-modal,
    .notification {
        display: none !important;
    }
}

/* =============================================================================
   PAGE-SPECIFIC STYLES
   ============================================================================= */

/* Verification Badge Animation */
.verification-badge { 
    animation: verificationPulse 3s infinite; 
}
@keyframes verificationPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
}

/* Stripe Glow Animation */
.stripe-glow { 
    animation: stripeGlow 2s infinite; 
}
@keyframes stripeGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 91, 255, 0.7); }
    50% { box-shadow: 0 0 0 12px rgba(99, 91, 255, 0); }
}

/* Status Indicator Animation */
.status-indicator { 
    animation: statusPulse 2s infinite; 
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Security Check Animation */
.security-check { 
    animation: securityPulse 2s infinite; 
}
@keyframes securityPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

/* Uptime Bar Styles */
.uptime-bar {
    background: linear-gradient(90deg, #4CAF50 0%, #009688 99%, #009688 99%, #009688 100%);
}

/* Step Indicator Styles */
.step-indicator {
    transition: all 0.3s ease;
}

.step-active {
    background: linear-gradient(135deg, #FF2D2D, #FF7A00);
    color: white;
    transform: scale(1.1);
}

.step-completed {
    background: linear-gradient(135deg, #FF2D2D, #059669);
    color: white;
}

.step-pending {
    background: #E5E7EB;
    color: #6B7280;
}

.progress-line {
    height: 2px;
    background: linear-gradient(to right, #FF2D2D 0%, #E5E7EB 0%);
    transition: all 0.3s ease;
}

/* =============================================================================
   LEGAL PAGES SPECIFIC STYLES
   ============================================================================= */

/* Terms of Service Page */
.terms-section {
    margin-bottom: 2rem;
}

.terms-section h2 {
    border-bottom: 2px solid #FF2D2D;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.terms-subsection {
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.terms-highlight {
    background: linear-gradient(135deg, #FF2D2D10, #FF7A0010);
    border-left: 4px solid #FF2D2D;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

/* Refund Policy Page */
.refund-timeline {
    position: relative;
    padding-left: 2rem;
}

.refund-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #FF2D2D, #FF7A00);
}

.refund-step {
    position: relative;
    margin-bottom: 2rem;
}

.refund-step::before {
    content: '';
    position: absolute;
    left: -2.25rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #FF2D2D;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(255, 45, 45, 0.3);
}

.refund-policy-card {
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.refund-policy-card:hover {
    border-color: #FF2D2D;
    box-shadow: 0 4px 16px rgba(255, 45, 45, 0.1);
}

/* Privacy Policy Page */
.privacy-section {
    scroll-margin-top: 6rem;
}

.privacy-highlight {
    background: rgba(255, 45, 45, 0.05);
    border: 1px solid rgba(255, 45, 45, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1rem 0;
}

.privacy-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.privacy-right-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.privacy-right-item:hover {
    background: rgba(255, 45, 45, 0.05);
    border-color: rgba(255, 45, 45, 0.3);
}

/* Cookie consent banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(16, 15, 38, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 45, 45, 0.3);
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

/* Legal document formatting */
.legal-document {
    line-height: 1.7;
    font-size: 0.95rem;
}

.legal-document h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legal-document h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #FF2D2D;
}

.legal-document h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #FF7A00;
}

.legal-document h4 {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.legal-document ul, .legal-document ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-document li {
    margin-bottom: 0.5rem;
}

.legal-document strong {
    color: #FF2D2D;
    font-weight: 600;
}

.legal-document .important-notice {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.dark .legal-document .important-notice {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(253, 230, 138, 0.1));
    border-color: rgba(245, 158, 11, 0.5);
}

.legal-document .warning-box {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 1px solid #ef4444;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.dark .legal-document .warning-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(254, 202, 202, 0.1));
    border-color: rgba(239, 68, 68, 0.5);
}

.legal-document .info-box {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #3b82f6;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.dark .legal-document .info-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(191, 219, 254, 0.1));
    border-color: rgba(59, 130, 246, 0.5);
}

/* Table of contents for legal pages */
.legal-toc {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    position: sticky;
    top: 5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.legal-toc h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #FF2D2D;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    margin-bottom: 0.5rem;
}

.legal-toc a {
    color: inherit;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: block;
    transition: all 0.2s ease;
}

.legal-toc a:hover {
    background: rgba(255, 45, 45, 0.1);
    color: #FF2D2D;
}

/* Print styles for legal documents */
@media print {
    .legal-document {
        font-size: 12pt;
        line-height: 1.5;
        color: black !important;
    }
    
    .legal-document h1 {
        font-size: 18pt;
        page-break-after: avoid;
    }
    
    .legal-document h2 {
        font-size: 16pt;
        page-break-after: avoid;
        color: black !important;
    }
    
    .legal-document h3 {
        font-size: 14pt;
        page-break-after: avoid;
        color: black !important;
    }
    
    .legal-document .important-notice,
    .legal-document .warning-box,
    .legal-document .info-box {
        border: 2px solid black !important;
        background: white !important;
        page-break-inside: avoid;
    }
    
    .legal-toc {
        display: none;
    }
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .legal-document h1 {
        font-size: 2rem;
    }
    
    .legal-document h2 {
        font-size: 1.5rem;
    }
    
    .legal-document h3 {
        font-size: 1.2rem;
    }
    
    .refund-timeline {
        padding-left: 1.5rem;
    }
    
    .refund-step::before {
        left: -1.75rem;
        width: 0.75rem;
        height: 0.75rem;
    }
    
    .privacy-rights-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-toc {
        position: static;
        max-height: none;
    }
}