/* ==========================================================================
   Demo Pages - Shared Components Only
   Only truly shared components that don't override page-specific styles
   ========================================================================== */

/* ===== CSS Variables (can be overridden by each page's :root) ===== */
:root {
    --demo-primary: #ff6b9d;
    --demo-secondary: #fbbf24;
    --demo-text: #ffffff;
    --demo-text-muted: rgba(255, 255, 255, 0.7);
    --demo-card-bg: rgba(0, 0, 0, 0.25);
    --demo-card-border: rgba(255, 255, 255, 0.1);
    --demo-radius: 24px;
    --demo-radius-sm: 16px;
    --demo-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    --demo-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =======================================================================
   SHARED COMPONENTS - These don't exist in page inline styles
   ======================================================================= */

/* ===== Glass Card Enhancement (optional class) ===== */
.glass-card {
    background: var(--demo-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--demo-radius);
    border: 1px solid var(--demo-card-border);
    box-shadow: var(--demo-shadow);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--demo-primary), var(--demo-secondary));
    opacity: 0.8;
}

/* ===== Certificate Component (shared across Anne, Baba) ===== */
.certificate-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid var(--demo-primary);
    text-align: center;
    position: relative;
}

.certificate-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--demo-primary), var(--demo-secondary));
    border-radius: 25px;
    z-index: -1;
    opacity: 0.3;
}

.certificate-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: var(--demo-primary);
}

.certificate-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 15px;
    color: var(--demo-primary);
}

.certificate-name {
    font-family: 'Dancing Script', 'Playfair Display', cursive;
    font-size: clamp(2rem, 6vw, 2.5rem);
    color: white;
    margin: 20px 0;
}

.certificate-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--demo-text-muted);
    margin-bottom: 20px;
}

.certificate-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--demo-text-muted);
}

.certificate-seal {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--demo-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-align: center;
}

@media (max-width: 480px) {
    .certificate-container {
        padding: 25px 20px;
    }

    .certificate-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .certificate-seal {
        width: 50px;
        height: 50px;
        font-size: 0.6rem;
    }
}

/* ===== Story Modal (used in share section) ===== */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.story-modal.show {
    display: flex;
}

.story-modal-content {
    background: rgba(30, 30, 50, 0.95);
    border-radius: 25px;
    padding: 30px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    border: 1px solid var(--demo-card-border);
}

.story-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border: none;
}

.story-modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--demo-primary);
}

.story-preview {
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 9/16;
    max-height: 350px;
}

.story-preview canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-story-download {
    background: linear-gradient(135deg, var(--demo-primary) 0%, var(--demo-secondary) 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-story-download:hover {
    transform: scale(1.05);
}

.story-hint {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .story-modal-content {
        padding: 20px;
    }

    .story-preview {
        max-height: 300px;
    }
}

/* ===== Peace Button (Özür sayfası) ===== */
.peace-btn-container {
    text-align: center;
    margin-top: 30px;
}

.peace-btn {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
    padding: clamp(15px, 4vw, 20px) clamp(40px, 10vw, 60px);
    border-radius: 100px;
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 184, 148, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.peace-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 50px rgba(0, 184, 148, 0.5);
}

.peace-btn.clicked {
    pointer-events: none;
    background: linear-gradient(135deg, #00b894, #55efc4);
    animation: success-pulse 0.5s ease;
}

@keyframes success-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.hidden {
    display: none !important;
}