@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #f4c400;
    --primary-gradient: #f4c400;
    --secondary-color: #111111;
    --accent-color: #fff4b8;
    --bg-color: #fffdf2;
    --card-bg: #ffffff;
    --text-primary: #151515;
    --text-secondary: #6b6250;
    --border-color: #f1df91;
    --radius: 16px;
    --shadow: 0 10px 25px -5px rgba(26, 26, 26, 0.08), 0 8px 10px -6px rgba(244, 196, 0, 0.18);
    --shadow-hover: 0 20px 25px -5px rgba(26, 26, 26, 0.12), 0 10px 10px -5px rgba(244, 196, 0, 0.24);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    justify-content: center;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Mobile App Wrapper */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background: var(--bg-color);
    box-shadow: 0 0 40px rgba(17,17,17,0.10);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
.app-header {
    background: var(--primary-gradient);
    color: #111111;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 4px 20px rgba(244, 196, 0, 0.28);
    animation: slideIn 0.4s ease-out;
}

.app-header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Content Area */
.app-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 90px; /* Space for bottom nav */
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(244, 196, 0, 0.35);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 20px 0;
    z-index: 20;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.03);
}

.bottom-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav a.active {
    color: #111111;
    transform: translateY(-4px);
}

.bottom-nav a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.bottom-nav a.active svg {
    filter: drop-shadow(0 4px 6px rgba(244, 196, 0, 0.45));
}

/* Cards & Lists */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(241, 223, 145, 0.75);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out backwards;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Stagger card animations */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: #fffdf2;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(244, 196, 0, 0.22);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #111111;
    box-shadow: 0 4px 15px rgba(244, 196, 0, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(244, 196, 0, 0.36);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff4b8;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #ffe45c;
}

.btn-danger {
    background: #fee2e2;
    color: #ef4444;
}

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

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Media Gallery */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.media-item {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    background-color: #fff4b8;
    transition: transform 0.5s ease;
}
.media-grid > div:hover .media-item {
    transform: scale(1.05);
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--primary-color); }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #f4c400;
    border-radius: 10px;
}

/* Tab Styles override for index.php */
.tabs {
    background: transparent;
    border: none;
    margin: -10px -20px 20px -20px;
    padding: 10px 20px;
}
.tab-btn {
    background: #ffffff;
    margin: 0 4px;
    border-radius: 20px;
    border: none !important;
    color: var(--text-secondary) !important;
    box-shadow: 0 2px 8px rgba(17,17,17,0.06);
}
.tab-btn.active {
    background: var(--primary-gradient) !important;
    color: #111111 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 196, 0, 0.32);
}
.tab-content {
    animation: fadeInUp 0.4s ease-out;
}
