:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --ad-bg: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.blob-1 {
    top: -100px;
    left: -100px;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Header Timer */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timer-box {
    background: var(--glass);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-value {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
}

.instruction-msg {
    display: none;
    background: rgba(99, 102, 241, 0.1);
    border: 1px dashed var(--primary);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    color: var(--text-main);
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.ad-slot {
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--ad-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 250px;
    position: relative;
}

.ad-slot::before {
    content: "ADVERTISEMENT";
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0.3rem 0;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.03);
}

/* Timer and Instruction Block */
.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.ad-header {
    width: 100%;
    max-width: 750px;
}

.ad-sidebar {
    width: 100%;
    max-width: 336px;
}

/* Content Container */
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-placeholder {
    margin-bottom: 2rem;
}

.content-placeholder p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: none;
    /* Hidden by default */
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
    width: 100%;
    margin-top: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(99, 102, 241, 0.5);
}

.btn-active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* Footer Section */
footer {
    padding: 4rem 2rem;
    text-align: center;
}

.footer-timer-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 640px) {
    h1 {
        font-size: 1.8rem;
    }

    header {
        padding: 1rem;
    }
}