/* ===== CSS VARIABLES - Soft & Dreamy Theme ===== */
:root {
    /* Primary Colors - Soft lavender/purple */
    --primary-hue: 260;
    --primary: hsl(260, 60%, 65%);
    --primary-light: hsl(260, 70%, 80%);
    --primary-dark: hsl(260, 50%, 50%);
    --primary-bg: hsl(260, 30%, 97%);

    /* Accent Colors - Soft pastels */
    --accent-1: hsl(340, 60%, 75%);
    /* Soft pink */
    --accent-2: hsl(170, 50%, 70%);
    /* Soft mint */
    --accent-3: hsl(40, 80%, 75%);
    /* Soft gold */
    --accent-4: hsl(200, 60%, 75%);
    /* Soft sky */

    /* Category Colors - Muted & gentle */
    --cat-health: hsl(340, 50%, 70%);
    --cat-career: hsl(220, 50%, 70%);
    --cat-finance: hsl(45, 60%, 70%);
    --cat-education: hsl(280, 45%, 70%);
    --cat-relationships: hsl(0, 50%, 75%);
    --cat-personal: hsl(170, 45%, 65%);

    /* Neutral Colors - Warm whites & soft grays */
    --bg-primary: #fdfbf9;
    --bg-secondary: #f8f6f4;
    --bg-tertiary: #f0eeec;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);

    --text-primary: #3d3d3d;
    --text-secondary: rgba(60, 60, 60, 0.75);
    --text-muted: rgba(60, 60, 60, 0.5);

    --border-color: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.08);

    /* Gradients - Dreamy & ethereal */
    --gradient-primary: linear-gradient(135deg, hsl(260, 60%, 75%), hsl(340, 60%, 80%));
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    --gradient-glow: radial-gradient(circle, hsl(260, 60%, 90%) 0%, transparent 70%);
    --gradient-bg: linear-gradient(180deg, #fdfbf9 0%, #f5f0eb 100%);

    /* Shadows - Soft & diffused */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 10px 40px rgba(180, 160, 200, 0.15);
    --shadow-glow: 0 0 30px rgba(180, 160, 220, 0.2);

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Spacing - More breathing room */
    --container-width: 1200px;
    --section-padding: 5rem;
    --header-height: 70px;

    /* Transitions - Gentle & smooth */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius - Soft & rounded */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
}

/* ===== SECTION HEADER ===== */
.section__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.section__title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== SELECTION ===== */

/* ===== VISION BOARD PAGE STYLES - Soft & Dreamy ===== */
.vb-section {
    background: var(--gradient-bg);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(200, 180, 220, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(220, 180, 200, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(180, 200, 220, 0.08) 0%, transparent 40%);
}

.vb-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2.5rem;
    height: calc(100vh - var(--header-height) - 4rem);
}

/* Sidebar Styles - Glassmorphism light */
.vb-sidebar {
    padding: 2rem;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    height: 100%;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
}

.vb-sidebar__header h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vb-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.vb-cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    cursor: pointer;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* 2026 Yatay Kategori Butonu */
.vb-cat-btn--wide {
    grid-column: span 2;
    flex-direction: row;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.vb-cat-btn--wide .cat-icon {
    width: 100%;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.cat-year-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.cat-icon {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.vb-cat-btn:hover .cat-icon {
    transform: scale(1.1);
}

.vb-cat-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(180, 160, 200, 0.2);
}

.vb-cat-btn.active {
    background: white;
    border-color: var(--primary-light);
    box-shadow: 0 8px 30px rgba(180, 160, 200, 0.25);
    transform: translateY(-2px);
}

.vb-cat-btn span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.vb-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 0.5rem 0;
    width: 100%;
}

.vb-upload-area {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hidden-input {
    display: none;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn--soft {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn--soft:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vb-url-input-wrapper {
    position: relative;
}

/* Assets Area */
.vb-assets-area {
    flex: 1;
    overflow-y: auto;
    min-height: 350px;
    max-height: 450px;
    padding-right: 0.5rem;
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.asset-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: grab;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.asset-item:hover {
    border-color: var(--primary-light);
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 8px 25px rgba(180, 160, 200, 0.2);
    z-index: 10;
}

.asset-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    border-radius: var(--radius-sm);
}

/* Board Area */
.vb-board-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.vb-board-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.vb-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.vb-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.vb-actions {
    display: flex;
    gap: 0.5rem;
}

.btn--icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

/* Board Container Updates - Soft & Inviting */
.board-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    border: 2px dashed rgba(180, 160, 200, 0.3);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    display: block;
    overflow-y: auto;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 0 60px rgba(200, 180, 220, 0.05);
}

/* If we want a grid layout inside the board but draggable */
.board-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    gap: 1.5rem;
}

.board-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(180, 160, 200, 0.4);
    pointer-events: none;
}

.board-placeholder i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.board-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Active Drag State */
.board-container.drag-over {
    border-color: var(--primary-light);
    background: rgba(230, 220, 240, 0.3);
    box-shadow: inset 0 0 80px rgba(180, 160, 220, 0.1);
}

/* Responsive */
@media (max-width: 968px) {
    .vb-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .vb-sidebar {
        height: auto;
        max-height: 500px;
    }

    .board-container {
        min-height: 500px;
    }
}

/* ===== TEMPLATE SELECTOR STYLES ===== */
.template-selector {
    position: relative;
}

.template-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.template-btn:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.template-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.template-dropdown.show {
    display: flex;
}

.template-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.template-option:hover {
    background: var(--bg-secondary);
}

.template-option.active {
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
}

.template-preview {
    width: 36px;
    height: 36px;
    display: grid;
    gap: 2px;
    padding: 3px;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.template-preview div {
    background: var(--primary-light);
    border-radius: 2px;
}

.template-preview--grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.template-preview--stamp {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
}

.template-preview--stamp div {
    border: 1px dashed var(--primary);
}

.template-preview--table {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
}

.template-preview--polaroid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
}

.template-option span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== BOARD TEMPLATE LAYOUTS ===== */

/* Grid Layout (Default) */
.board-container.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-auto-rows: 180px;
    gap: 1rem;
}

/* Table Layout - Tablo Görünümü */
.board-container.template-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 0;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.board-container.template-table .board-item {
    border-radius: 0;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.board-container.template-table .board-item:nth-child(3n) {
    border-right: none;
}

.board-container.template-table .board-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Polaroid Layout */
.board-container.template-polaroid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-content: flex-start;
    padding: 2rem;
}

.board-container.template-polaroid .board-item {
    width: 180px;
    height: auto;
    background: white;
    padding: 0.75rem;
    padding-bottom: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: rotate(var(--rotation, 0deg));
}

.board-container.template-polaroid .board-item:nth-child(odd) {
    --rotation: -3deg;
}

.board-container.template-polaroid .board-item:nth-child(even) {
    --rotation: 2deg;
}

.board-container.template-polaroid .board-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 2px;
}

/* Board Item Base Styles */
.board-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: move;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    background: var(--bg-card);
}

.board-item:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
    z-index: 10;
}

.board-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.board-item__delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.board-item:hover .board-item__delete {
    opacity: 1;
}