/* ==========================================
   Pages CSS - Premium Refresh
   Styles for About, FAQ, Blog, RandyCoin
   ========================================== */

/* Page Header */
.page-header {
    background: var(--grad-deep);
    padding: 8.5rem 0 1.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(74, 155, 127, 0.1) 0%, transparent 70%);
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 0.75rem;
    color: white !important;
    text-align: center;
    width: 100%;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
    color: white !important;
    text-align: center;
}

/* Content Sections */
.content-section {
    padding: 0.5rem 0;
}

.content-section.alternate-bg {
    background: rgba(255, 255, 255, 0.02);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text h2 {
    color: var(--v2-white, #ffffff);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.content-text p {
    color: var(--v2-muted, rgba(255, 255, 255, 0.7));
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-image {
    width: 100%;
    max-width: 450px;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.placeholder-profile {
    width: 400px;
    height: 400px;
    border-radius: 32px;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

/* Explanation Grid */
.explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.explanation-card {
    background: var(--v2-card-bg);
    backdrop-filter: var(--v2-blur);
    padding: 3rem;
    border-radius: 24px;
    border: var(--v2-border);
    transition: var(--transition);
}

.explanation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-green-light);
}

.explanation-card h3 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

/* FAQ Styles */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--v2-card-bg);
    backdrop-filter: var(--v2-blur);
    margin-bottom: 1rem;
    border-radius: 16px;
    border: var(--v2-border);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-green-light);
}

.faq-item.active {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-green-light);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--v2-white);
    text-align: center;
}

.faq-icon {
    position: absolute;
    right: 2rem;
    font-size: 1.25rem;
    color: var(--primary-orange);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.faq-item.active .faq-answer {
    max-height: 800px;
    padding: 0 2rem 2rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.blog-card {
    background: var(--v2-card-bg);
    backdrop-filter: var(--v2-blur);
    border-radius: 24px;
    overflow: hidden;
    border: var(--v2-border);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-green-light);
}

.blog-image {
    width: 100%;
    height: 240px;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.blog-content {
    padding: 2.5rem;
}

.blog-meta {
    color: var(--primary-orange);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* RandyCoin Page */
.chart-container {
    background: var(--v2-card-bg, rgba(17, 24, 39, 0.6));
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--v2-border-color, rgba(255, 255, 255, 0.08));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.wallet-section {
    background: var(--v2-card-bg, rgba(17, 24, 39, 0.6));
    padding: 4rem;
    border-radius: 32px;
    text-align: center;
    border: 1px solid var(--v2-cyan);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.1);
    color: white;
}

.contract-address {
    background: #0f172a;
    color: #94a3b8;
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contract-label {
    color: var(--primary-orange);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

/* RandyCoin Content Cards */
.coin-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.coin-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 32px;
    text-align: center;
    transition: var(--transition);
}

.coin-info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.04);
}

.coin-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    display: block;
}

.coin-info-card h3 {
    color: white !important;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.coin-info-card p {
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Privacy Page */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h2 {
    color: var(--v2-white, #ffffff);
    margin: 4rem 0 1.5rem;
}

/* Responsive */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .content-grid.reverse {
        display: flex;
        flex-direction: column-reverse;
    }
}

/* Quiz Ad Section */
.quiz-ad-section {
    padding: 10rem 0;
    background: radial-gradient(circle at bottom left, #1e293b, #020617);
    position: relative;
    overflow: hidden;
}

.quiz-ad-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(241, 179, 65, 0.05) 0%, transparent 70%);
}

.quiz-ad-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 48px;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4rem;
    color: white;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.02);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.quiz-ad-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-accent);
}

.quiz-ad-image-container {
    width: 260px;
    height: 260px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.quiz-ad-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.quiz-ad-card:hover .quiz-ad-image-container img {
    transform: translateY(-10px) rotate(3deg) scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
}

.quiz-ad-content {
    flex: 1;
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.quiz-ad-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.quiz-ad-title {
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    font-weight: 800;
    color: white !important;
}

.quiz-ad-text {
    font-size: 1.15rem;
    opacity: 0.9;
    margin: 0 auto 2.5rem;
    max-width: 650px;
    line-height: 1.6;
    color: #cbd5e1 !important;
}

.quiz-features-list {
    list-style: none;
    margin-bottom: 3.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    padding: 0;
}

.quiz-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #f1f5f9;
}

.quiz-feature-item .dot {
    width: 14px;
    height: 14px;
    background: var(--grad-accent);
    border-radius: 3px;
    flex-shrink: 0;
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(241, 179, 65, 0.4);
}

/* Alarm Frenzy Section */
.alarm-frenzy-ad {
    padding: 12rem 0;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.9)),
        url('../images/alarm-frenzy-teaser.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(239, 68, 68, 0.3);
    border-bottom: 2px solid rgba(239, 68, 68, 0.3);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
    animation: alarmPulse 4s infinite alternate;
}

@keyframes alarmPulse {
    0% {
        border-color: rgba(239, 68, 68, 0.3);
        box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
    }

    100% {
        border-color: rgba(239, 68, 68, 0.6);
        box-shadow: inset 0 0 120px rgba(239, 68, 68, 0.1);
    }
}

.alarm-frenzy-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.alarm-frenzy-title {
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #ff4d4d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.5));
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.4));
        transform: scale(1);
    }

    to {
        filter: drop-shadow(0 0 40px rgba(239, 68, 68, 0.8));
        transform: scale(1.02);
    }
}

.alarm-frenzy-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.alarm-frenzy-btn {
    background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 4rem;
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.alarm-frenzy-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.6);
    border-color: white;
}

@media (max-width: 768px) {
    .alarm-frenzy-title {
        font-size: 2.5rem;
    }

    .alarm-frenzy-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .quiz-ad-card {
        flex-direction: column;
        text-align: center;
        padding: 4rem 2rem;
    }

    .quiz-ad-image-container {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .quiz-ad-title {
        font-size: 2.8rem;
    }

    .quiz-features-list {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}