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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1F2937;
    background: #FAF9F7;
}

.hidden { display: none !important; }

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #E8897B;
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: #6B7280;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    color: #C17A8F;
    background: #FBF0F2;
}

.nav-btn.active {
    background: #FBF0F2;
    color: #C17A8F;
    font-weight: 600;
}

/* Main Container */
main {
    background: #FAF9F7;
    min-height: 100vh;
}

.page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Typography */
h1 {
    font-size: 2.25rem;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 1rem;
}

.divider {
    width: 6rem;
    height: 0.25rem;
    background: linear-gradient(to right, #E8897B, #C17A8F);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #E8897B;
    color: white;
}

.btn-primary:hover {
    background: #C17A8F;
    box-shadow: 0 4px 12px rgba(193, 122, 143, 0.35);
}

.btn-secondary {
    border: 2px solid #E8897B;
    color: #E8897B;
    background: transparent;
}

.btn-secondary:hover {
    background: #F0F4F0;
    border-color: #C17A8F;
    color: #C17A8F;
}

.btn-success {
    background: #E8897B;
    color: white;
}

.btn-success:hover {
    background: #6B8968;
    box-shadow: 0 4px 12px rgba(124, 154, 122, 0.3);
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Cards */
.card {
    background: #FFFFFF;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    border: 1px solid #F0F0F0;
}

.card:hover {
    box-shadow: 0 10px 15px rgba(124, 154, 122, 0.1);
    border-color: #E8897B;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.2s;
    background: #FFFFFF;
    color: #1F2937;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #E8897B;
    box-shadow: 0 0 0 3px rgba(124, 154, 122, 0.1);
}

/* Upload Area */
.upload-area {
    border: 2px dashed #D1D5DB;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #FAFAF8;
}

.upload-area:hover {
    border-color: #E8897B;
    background: #F5F9F5;
}

.upload-area input[type="file"] {
    display: none;
}

/* Images Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #F0F0F0;
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.image-item .delete-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.image-item:hover .delete-btn {
    opacity: 1;
}

/* Section Styles */
.bg-orange { background: #F5F5F0; border-left: 4px solid #E8897B; }
.bg-blue { background: #F5F5F0; border-left: 4px solid #E8897B; }
.bg-green { background: #F0F4F0; border-left: 4px solid #E8897B; }
.bg-gray { background: #F5F5F0; }

.text-center { text-align: center; }

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.inactive {
    background: #F0F4F0;
    color: #6B7280;
}

.tab-btn.active {
    background: #E8897B;
    color: white;
    box-shadow: 0 10px 15px rgba(124, 154, 122, 0.2);
}

/* Success Message */
.success-msg {
    background: #F0F4F0;
    border: 1px solid #E8897B;
    color: #1F2937;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

/* Footer */
footer {
    background: #2E2E2E;
    color: #9ca3af;
    padding: 3rem 1rem;
    text-align: center;
}

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
    display: none;
    background: none;
    border: 1.5px solid #E8897B;
    border-radius: 0.5rem;
    cursor: pointer;
    padding: 0.35rem 0.65rem;
    color: #E8897B;
    font-size: 1.3rem;
    line-height: 1;
    transition: background 0.2s;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-hamburger:hover { background: #FEF0ED; }

/* ── Responsive ── */
@media (max-width: 768px) {
    h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
    h2 { font-size: clamp(1.2rem, 5vw, 1.5rem); }
    .grid { gap: 1rem; }
    .page { padding: 1.25rem 0.75rem; }

    /* Mobile nav — hamburger dropdown */
    .nav-hamburger { display: flex; align-items: center; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.1rem;
        padding: 0.5rem 0 0.75rem;
        border-top: 1px solid #F3EDE8;
        margin-top: 0.25rem;
    }
    .nav-links.open { display: flex; }
    .nav-btn {
        padding: 0.8rem 1rem;
        border-radius: 0.375rem;
        font-size: 0.9375rem;
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .page { padding: 1rem 0.5rem; }
    .btn { padding: 0.7rem 1.25rem; font-size: 0.9rem; }
}
