/* ==========================================================================
   METU Course Finder: Academic Minimalism Case Study
   ========================================================================== */

:root {
    --color-oxford: #002147;
    --color-parchment: #FDF5E6;
    --color-gold: #C5B358;
    --color-gold-dim: rgba(197, 179, 88, 0.2);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-parchment);
    color: var(--color-oxford);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-oxford);
}

h1 { font-size: 5rem; line-height: 1.1; margin-bottom: 2rem; }
h2 { font-size: 3rem; margin-bottom: 2rem; }
h3 { font-size: 1.8rem; margin-bottom: 1rem; }

.mono { font-family: var(--font-mono); font-size: 0.9rem; color: var(--color-gold); }

/* Navigation */
nav {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 33, 71, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-oxford);
    text-decoration: none;
    letter-spacing: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--color-parchment), #fcfcfc);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 6rem;
    margin-bottom: 2rem;
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--color-gold-dim);
    padding-top: 2.5rem;
}

.grid-item h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: 0.8rem;
}

.grid-item p {
    font-size: 1rem;
    font-weight: 500;
}

.hero-mockup img {
    width: 100%;
    height: auto;
    box-shadow: 0 30px 60px rgba(0, 33, 71, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Data Harvest Section */
.harvest-section {
    padding: 10rem 0;
    background-color: var(--color-oxford);
    color: var(--color-parchment);
}

.harvest-section h2 { color: var(--color-parchment); text-align: center; margin-bottom: 5rem; }

.harvest-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.harvest-node {
    width: 250px;
    padding: 2.5rem;
    border: 1px solid rgba(253, 245, 230, 0.2);
    text-align: center;
    background: rgba(255,255,255,0.02);
}

.harvest-node i { font-size: 2.5rem; color: var(--color-gold); margin-bottom: 1.5rem; }

.harvest-arrow {
    flex: 1;
    height: 1px;
    background: var(--color-gold);
    margin: 0 2rem;
    position: relative;
}

.harvest-arrow::after {
    content: '';
    position: absolute;
    right: 0; top: -4px;
    width: 10px; height: 10px;
    border-top: 1px solid var(--color-gold);
    border-right: 1px solid var(--color-gold);
    transform: rotate(45deg);
}

/* Semantic Core Visualization */
.semantic-section {
    padding: 12rem 0;
}

.semantic-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.viz-card {
    background: white;
    padding: 4rem;
    border: 1px solid rgba(0, 33, 71, 0.05);
    box-shadow: 0 20px 40px rgba(0, 33, 71, 0.03);
    position: relative;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vector-compass {
    width: 300px;
    height: 300px;
    position: relative;
}

.axis {
    position: absolute;
    background: #eee;
}

.axis-x { width: 100%; height: 1px; top: 50%; left: 0; }
.axis-y { height: 100%; width: 1px; left: 50%; top: 0; }

.vector {
    position: absolute;
    top: 50%; left: 50%;
    height: 2px;
    background: var(--color-gold);
    transform-origin: left center;
    transition: width 1.5s ease;
}

.vector.v1 { transform: rotate(-45deg); width: 0; }
.vector.v2 { transform: rotate(-35deg); width: 0; }

.vector.visible { width: 120px; }

.cosine-arc {
    position: absolute;
    top: 50%; left: 50%;
    width: 60px; height: 60px;
    border: 1px solid var(--color-oxford);
    border-radius: 50%;
    clip-path: polygon(50% 50%, 100% 0, 100% 100%);
    opacity: 0;
    transition: opacity 0.5s ease 1.5s;
}

.cosine-arc.visible { opacity: 0.5; }

/* Course Cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 8rem 0;
}

.course-card {
    background: white;
    padding: 2.5rem;
    border-left: 4px solid var(--color-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.match-score {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

/* Technical Narrative */
.narrative-section {
    padding: 10rem 0;
    background: #fdfdfd;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.narrative-content {
    max-width: 800px;
    margin: 0 auto;
}

.narrative-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.code-block {
    background: var(--color-oxford);
    color: var(--color-parchment);
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-radius: 4px;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content, .semantic-container { grid-template-columns: 1fr; }
    h1 { font-size: 4rem; }
    .academic-grid { grid-template-columns: 1fr; }
    .harvest-flow { flex-direction: column; }
    .harvest-arrow { height: 60px; width: 1px; margin: 1rem 0; }
    .harvest-arrow::after { transform: rotate(135deg); top: auto; bottom: 0; right: -4px; }
    .course-grid { grid-template-columns: 1fr; }
}
