/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Container principal */
.container {
    min-height: 100vh;
    background: #0f172a;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LED Background Animation */
.led-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.led-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(59, 130, 246, 0.3) 1px, transparent 0);
    background-size: 60px 60px;
    animation: led-move 20s linear infinite;
    transition: transform 0.3s ease-out;
}

.led-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(147, 197, 253, 0.2) 1px, transparent 0);
    background-size: 40px 40px;
    animation: led-move-reverse 15s linear infinite;
    transition: transform 0.3s ease-out;
}

.led-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(96, 165, 250, 0.1) 1px, transparent 0);
    background-size: 80px 80px;
    animation: led-pulse 8s ease-in-out infinite;
    transition: transform 0.3s ease-out;
}

@keyframes led-move {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-30px, -30px);
    }
    50% {
        transform: translate(-60px, 0);
    }
    75% {
        transform: translate(-30px, 30px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes led-move-reverse {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, 20px);
    }
    50% {
        transform: translate(40px, 0);
    }
    75% {
        transform: translate(20px, -20px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes led-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Gradient Overlay */
.gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0.7) 40%, rgba(15, 23, 42, 0.9) 100%);
    transition: background 0.3s ease-out;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
    max-width: 64rem;
    margin: 0 auto;
}

/* Main Title */
.main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .main-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .main-title {
        font-size: 5.5rem;
    }
}

.title-text {
    background: linear-gradient(to right, #60a5fa, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(59, 130, 246, 0.8), 0 0 40px rgba(59, 130, 246, 0.3);
    }
}

.animate-glow {
    animation: glow 3s ease-in-out infinite alternate;
}

/* Divider Line */
.divider-line {
    width: 6rem;
    height: 0.25rem;
    background: linear-gradient(to right, #60a5fa, #2563eb);
    margin: 0 auto 2rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Subtitle */
.subtitle {
    color: #d1d5db;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

@media (min-width: 768px) {
    .subtitle {
        font-size: 1.25rem;
    }
}

.highlight {
    color: #60a5fa;
    font-weight: 500;
}

/* Connect Button */
.connect-button {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.connect-button:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25);
}

.connect-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.connect-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Timer Styles */
.timer-container {
    margin-top: 2rem;
}

.timer-title {
    color: #d1d5db;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.timer-number {
    font-size: 3rem;
    font-weight: 700;
    color: #60a5fa;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
    animation: glow 3s ease-in-out infinite alternate;
}

.timer-label {
    font-size: 0.875rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timer-separator {
    font-size: 3rem;
    font-weight: 700;
    color: #60a5fa;
    margin-top: -1rem;
}

.timer-complete {
    font-size: 2rem;
    font-weight: 700;
    color: #60a5fa;
    text-align: center;
    animation: glow 3s ease-in-out infinite alternate;
}

/* Skeleton Loading */
.skeleton-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.skeleton-title {
    width: 300px;
    height: 4rem;
    background: linear-gradient(90deg, #1e293b 20%, #2d3748 40%, #374151 60%, #1e293b 80%);
    background-size: 300% 100%;
    animation: skeleton-loading 3s ease-in-out infinite;
    border-radius: 0.5rem;
    opacity: 0.8;
}

.skeleton-divider {
    width: 6rem;
    height: 0.25rem;
    background: linear-gradient(90deg, #1e293b 20%, #2d3748 40%, #374151 60%, #1e293b 80%);
    background-size: 300% 100%;
    animation: skeleton-loading 3s ease-in-out infinite;
    border-radius: 0.25rem;
    opacity: 0.7;
}

.skeleton-subtitle {
    width: 400px;
    height: 1.5rem;
    background: linear-gradient(90deg, #1e293b 20%, #2d3748 40%, #374151 60%, #1e293b 80%);
    background-size: 300% 100%;
    animation: skeleton-loading 3s ease-in-out infinite;
    border-radius: 0.25rem;
    opacity: 0.6;
}

.skeleton-button {
    width: 200px;
    height: 3rem;
    background: linear-gradient(90deg, #1e293b 20%, #2d3748 40%, #374151 60%, #1e293b 80%);
    background-size: 300% 100%;
    animation: skeleton-loading 3s ease-in-out infinite;
    border-radius: 0.5rem;
    opacity: 0.7;
}

@keyframes skeleton-loading {
    0% {
        background-position: 300% 0;
    }
    50% {
        background-position: 0% 0;
    }
    100% {
        background-position: -300% 0;
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 0.875rem;
    }
    
    .connect-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .timer-number {
        font-size: 2rem;
    }
    
    .timer-separator {
        font-size: 2rem;
    }
    
    .timer-display {
        gap: 0.5rem;
    }
    
    .skeleton-title {
        width: 250px;
        height: 3rem;
    }
    
    .skeleton-subtitle {
        width: 300px;
        height: 1.25rem;
    }
    
    .skeleton-button {
        width: 180px;
        height: 2.5rem;
    }
} 