/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base styles */
:root {
    --primary-color: #9b81fa;
    --primary-dark: #7a5af8;
    --secondary-color: #9ca3af;
    --text-color: #f8f9fa;
    --text-muted: rgba(255, 255, 255, 0.7);
    --bg-dark: #1a1f36;
    --card-bg: #242b42;
    --card-border: rgba(154, 113, 231, 0.2);
    --success-color: #34d058;
    --warning-color: #ffca28;
    --danger-color: #f85149;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: transparent;
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background is now handled by animated-bg.css */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Hero section */
.hero {
    margin-bottom: 2rem;
}

.hero img.logo {
    height: 60px;
    margin-bottom: 1rem;
}

.subtitle {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
    font-size: 2rem;
    letter-spacing: -0.01em;
    text-transform: none;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Content wrapper */
.content-wrapper {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 3.5rem;
    margin: 3rem 0;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: fade-in 0.8s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: gradient-animation 3s ease infinite;
    background-size: 200% 100%;
}

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

/* Info card */
.info-card {
    background-color: rgba(154, 113, 231, 0.05);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-color);
}

.animate-text {
    animation: fade-in 0.8s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
}

.animate-text strong {
    color: var(--text-color);
    font-weight: 600;
}

.animate-text em {
    font-style: normal;
    color: var(--text-color);
    font-weight: 500;
}

.delay-1 {
    animation-delay: 0.6s;
    color: rgba(255, 255, 255, 0.75);
}

/* Status cards */
.status-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .status-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.status-card {
    background-color: rgba(154, 113, 231, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(154, 113, 231, 0.08);
    border-color: rgba(154, 113, 231, 0.3);
}

.status-card .icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.status-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.status-card .status {
    color: var(--success-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    background-color: rgba(52, 208, 88, 0.1);
}

.status-card .description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Status indicator */
.status-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.spinner-pulse {
    width: 80px;
    height: 80px;
    position: relative;
    animation: pulse-animation 2s infinite;
    background: url('../images/icon.png') no-repeat center center;
    background-size: contain;
    filter: drop-shadow(0 0 10px rgba(154, 113, 231, 0.7));
    border-radius: 50%;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(154, 113, 231, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(154, 113, 231, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(154, 113, 231, 0);
    }
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

/* Setup progress */
.setup-progress {
    margin-bottom: 2rem;
}

.progress-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.progress {
    background-color: rgba(154, 113, 231, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), rgba(154, 113, 231, 0.8));
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Footer */
footer {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.powered {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    opacity: 0.8;
}

.brand {
    max-width: 140px;
    height: auto;
    transition: transform 0.3s ease;
}

footer a:hover .brand {
    transform: translateY(-3px);
}

/* Cookie consent banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-consent-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #712be3;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent-banner p {
    margin-bottom: 0;
    margin-right: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.cookie-consent-banner a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-consent-banner a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

#acceptCookies {
    background: linear-gradient(145deg, var(--primary-color), rgba(154, 113, 231, 0.8));
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.01em;
}

#acceptCookies:hover {
    background: linear-gradient(145deg, rgba(154, 113, 231, 0.9), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#acceptCookies:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Gradient divider */
.gradient-divider {
    height: 1px;
    border: none;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.6;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Steps styling */
.steps-container {
    margin: 2rem 0;
}

.step-item {
    background-color: rgba(154, 113, 231, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.step-item:hover {
    background-color: rgba(154, 113, 231, 0.08);
    border-color: rgba(154, 113, 231, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.step-icon {
    min-width: 40px;
    display: flex;
    justify-content: center;
}

.step-title {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.support-info {
    background-color: rgba(154, 113, 231, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--card-border);
}

.support-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.support-info .btn-outline-light {
    border-color: var(--primary-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.support-info .btn-outline-light:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Privacy Policy Modal */
.privacy-modal {
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.7);
}

.privacy-modal .modal-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.privacy-modal .modal-header {
    border-bottom: 1px solid var(--card-border);
    padding: 1.5rem;
}

.privacy-modal .modal-title {
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
}

.privacy-modal .btn-close {
    color: var(--text-muted);
    opacity: 0.8;
    transition: opacity 0.2s ease;
    filter: invert(1) brightness(1.5);
}

.privacy-modal .btn-close:hover {
    opacity: 1;
}

.privacy-modal .modal-body {
    padding: 1.5rem;
    color: var(--text-muted);
}

.privacy-modal .modal-body h5 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.privacy-modal .modal-body h5:first-child {
    margin-top: 0;
}

.privacy-modal .modal-body p, 
.privacy-modal .modal-body ul {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.privacy-modal .modal-body ul {
    padding-left: 1.5rem;
}

.privacy-modal .modal-body li {
    margin-bottom: 0.5rem;
}

/* Custom scrollbar with primary color */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(154, 113, 231, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* For Firefox */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(154, 113, 231, 0.1);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .status-cards {
        grid-template-columns: 1fr;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-banner p {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .spinner-pulse {
        width: 60px;
        height: 60px;
    }
    
    .step-item {
        padding: 1.25rem;
    }
    
    .privacy-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .privacy-modal-body {
        padding: 1rem;
    }
}
