/* Flashcards, dating, tinder, notebook section styles */

.flashcards-section { margin-top: 80px; padding-bottom: 40px; transform-style: preserve-3d; }
.flashcards-header { display: flex; justify-content: center; margin-bottom: 50px; }
.flashcards-header h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.2rem;
    color: var(--card);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--primary);
    padding: 10px 40px;
    border: 3px solid var(--border);
    box-shadow: 6px 6px 0px var(--border);
    transform: translateZ(36px) rotate(1deg);
}

/* grid has perspective already on body; keep card preserves */
.flashcards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.flashcard {
    background: var(--card);
    border: 3px solid var(--border);
    border-radius: 6px;
    padding: 30px 25px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    background-image:
        linear-gradient(rgba(255, 235, 59, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 235, 59, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    transform-style: preserve-3d;
    transform: rotateX(6deg) translateZ(18px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.9);
}

.flashcard p {
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--text);
    transform: translateZ(28px);
}

.flashcard-pin {
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 2px solid var(--border);
    border-radius: 50%;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%) translateZ(36px);
    box-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

.flashcard:nth-child(3n) { background-color: #E1F5FE; }
.flashcard:nth-child(3n+1) { background-color: #FFF3E0; }
.flashcard:nth-child(3n+2) { background-color: #F3E5F5; }

.flashcard:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--text);
    transform: translateZ(50px) rotateX(0deg) rotateZ(-1deg) scale(1.02);
}

/* DATING SECTION */
.dating-section { margin-top: 80px; padding-bottom: 40px; transform-style: preserve-3d; }
.dating-header { display: flex; justify-content: center; margin-bottom: 50px; }
.dating-header h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.2rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: #E91E63;
    padding: 8px 34px;
    border: 3px solid var(--border);
    box-shadow: 6px 6px 0px var(--border);
    transform: translateZ(34px) rotate(-2deg);
}

.dating-card {
    background: white;
    border: 3px solid #E91E63;
    border-radius: 20px;
    padding: 36px 25px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    transition: transform 0.18s ease;
    transform-style: preserve-3d;
    transform: translateZ(18px) rotateX(3deg);
    box-shadow: 8px 8px 0px #F8BBD0;
}

.dating-card:hover {
    transform: translateY(-10px) translateZ(40px) rotateX(0deg);
    box-shadow: 18px 18px 0px #F8BBD0;
    z-index: 30;
}

.dating-card p { font-family: 'Comic Neue', cursive; font-weight: 700; font-size: 1.25rem; color: #C2185B; transform: translateZ(28px); }

.dating-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) translateZ(36px);
    background: #E91E63;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 3px solid var(--border);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

/* TINDER SECTION */
.tinder-section { margin-top: 80px; padding-bottom: 40px; transform-style: preserve-3d; }
.tinder-header { display: flex; justify-content: center; margin-bottom: 50px; }
.tinder-header h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.2rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(45deg, #fd267a, #ff6036);
    padding: 10px 34px;
    border: 3px solid var(--border);
    border-radius: 50px;
    box-shadow: 6px 6px 0px var(--border);
    transform: translateZ(36px) rotate(2deg);
}

.tinder-card {
    background: linear-gradient(160deg, #fd267a 0%, #ff6036 100%);
    border: 3px solid var(--border);
    border-radius: 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.18s ease;
    transform-style: preserve-3d;
    transform: translateZ(18px) rotateX(4deg);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.9);
    overflow: hidden;
}

.tinder-card:hover { box-shadow: var(--shadow-hover); transform: translateZ(40px) rotateX(0deg); z-index: 40; }

.tinder-content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.tinder-content p { font-family: 'Comic Neue', cursive; font-weight: 700; font-size: 1.25rem; color: white; text-shadow: 1px 1px 0 rgba(0,0,0,0.2); line-height: 1.4; transform: translateZ(28px); }

.tinder-actions {
    height: 80px;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 2px solid rgba(255,255,255,0.2);
    transform: translateZ(20px);
}

.action-btn { width: 45px; height: 45px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; border: 2px solid var(--border); box-shadow: 2px 2px 0 rgba(0,0,0,0.1); cursor: pointer; transition: transform 0.12s ease; transform: translateZ(22px); }
.action-btn:hover { transform: scale(1.16) translateZ(28px); }
.action-btn.nope { color: #ec5e6f; } .action-btn.super { color: #3fa4f4; } .action-btn.like { color: #4acc94; }

/* NOTEBOOK SECTION */
.notebook-section { margin-top: 80px; padding-bottom: 40px; transform-style: preserve-3d; }
.notebook-header { display: flex; justify-content: center; margin-bottom: 50px; }
.notebook-header h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.2rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: #FFEB3B;
    padding: 10px 34px;
    border: 3px solid var(--border);
    border-radius: 5px;
    box-shadow: 6px 6px 0px var(--border);
    transform: translateZ(34px) rotate(-1deg);
}

.notebook-card {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.12);
    position: relative;
    min-height: 250px;
    padding: 40px 25px 25px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transform: translateZ(18px) rotateX(3deg);
    background-image:
        linear-gradient(#999 1px, transparent 1px),
        linear-gradient(90deg, transparent 90%, transparent 90%);
    background-size: 100% 1.5em;
    background-position: 0 1.5em;
    border-left: 3px solid rgba(255, 0, 0, 0.2);
}

.notebook-card::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ffcdd2;
    z-index: 1;
    transform: translateZ(20px);
}

.notebook-content p {
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
    font-size: 1.25rem;
    color: #37474F;
    line-height: 1.5em;
    margin-top: 3px;
    text-align: center;
    transform: translateZ(26px);
}

.tape-strip {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg) translateZ(36px);
    width: 120px;
    height: 35px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border-left: 2px dotted rgba(255,255,255,0.5);
    border-right: 2px dotted rgba(255,255,255,0.5);
    z-index: 5;
    backdrop-filter: blur(2px);
    opacity: 0.9;
}

