/* UruguayIPTV Custom Styles */

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.hero .emoji {
    font-size: 4rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* App Cards */
.app-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.app-card:hover::before {
    transform: scaleY(1);
}

.app-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.app-card .app-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-install {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-install:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #218838;
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: #000;
}

.btn-warning:hover {
    background: #e0a800;
    color: #000;
}

/* Feature Boxes */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-box:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.feature-box h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Info Boxes */
.download-box, .info-box, .warning-box {
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    border-left: 4px solid;
}

.download-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-left-color: var(--primary);
}

.info-box {
    background: #e7f3ff;
    border-left-color: var(--info);
}

.warning-box {
    background: #fff3cd;
    border-left-color: var(--warning);
}

/* Steps */
.step {
    margin: 2rem 0;
    padding: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
}

.step:last-child {
    border-bottom: none;
}

.step h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.step h4 {
    color: var(--secondary);
    margin-top: 1.5rem;
}

.step ol, .step ul {
    margin-left: 1.5rem;
}

.step li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

/* Code blocks */
code {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Back button */
.back-btn {
    display: inline-block;
    margin: 2rem 0;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: var(--primary-dark);
    transform: translateX(-4px);
}

/* Error page */
.error-container {
    text-align: center;
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.error-code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.error-message {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #666;
    margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .app-card {
        margin-bottom: 1rem;
    }

    .step {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Highlight */
.highlight {
    background: linear-gradient(120deg, transparent 0%, transparent 50%, var(--warning) 50%);
    background-size: 250% 100%;
    background-position: 100%;
    transition: background-position 0.5s ease;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.highlight:hover {
    background-position: 0%;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 12px;
    background: var(--primary);
    color: white;
}

.badge-success {
    background: var(--success);
}

.badge-warning {
    background: var(--warning);
    color: #000;
}

.badge-danger {
    background: var(--danger);
}
