/* ============================================
   Personal Assistant - Styles
   Modern Dark Theme with Glassmorphism
   ============================================ */

:root {
    /* Color Palette */
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(30, 30, 50, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);

    --accent-primary: #6c5ce7;
    --accent-secondary: #a29bfe;
    --accent-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    --status-green: #00d26a;
    --status-yellow: #ffc107;
    --status-red: #ff4757;

    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Spacing */
    --nav-height: 70px;
    --header-height: 80px;
    --radius: 16px;
    --radius-sm: 10px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top left, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(162, 155, 254, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* App Container */
.app {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Header
   ============================================ */
.header {
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
    text-align: center;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-update {
    position: absolute;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.2s;
}

.btn-update:hover {
    background: rgba(108, 92, 231, 0.2);
}

.btn-update.checking {
    animation: spin 1s linear infinite;
}

.header-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ============================================
   Hamburger Button
   ============================================ */
.btn-hamburger {
    position: absolute;
    left: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    transition: background 0.2s;
    z-index: 101;
}

.btn-hamburger:hover {
    background: rgba(108, 92, 231, 0.2);
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger animation when menu is open */
.btn-hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.btn-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.btn-hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Side Menu
   ============================================ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80vw;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 250;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
}

.side-menu.active {
    transform: translateX(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.menu-header h2 {
    font-size: 1.3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.menu-close:hover {
    background: rgba(255, 71, 87, 0.2);
}

.menu-items {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-item:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.menu-item.active {
    background: rgba(108, 92, 231, 0.2);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.menu-icon {
    font-size: 1.5rem;
}

.menu-label {
    font-weight: 500;
}

/* Update Banner */
.update-banner {
    display: none;
    padding: 12px 20px;
    background: linear-gradient(135deg, #00d26a 0%, #00b359 100%);
    color: white;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
}

.update-banner.visible {
    display: flex;
}

.update-banner button {
    padding: 6px 14px;
    background: white;
    color: #00b359;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.update-banner button:hover {
    transform: scale(1.05);
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    flex: 1;
    padding: 20px;
    padding-bottom: 40px;
    overflow-y: auto;
}

.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Add Button */
.btn-add {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-add:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
}

.btn-add:active {
    transform: scale(0.95);
}

/* ============================================
   Search Box
   ============================================ */
.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* ============================================
   Items List
   ============================================ */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: slideIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-ok {
    background: rgba(0, 210, 106, 0.15);
    color: var(--status-green);
}

.status-warning {
    background: rgba(255, 193, 7, 0.15);
    color: var(--status-yellow);
}

.status-danger {
    background: rgba(255, 71, 87, 0.15);
    color: var(--status-red);
}

.status-expired {
    background: rgba(255, 71, 87, 0.25);
    color: var(--status-red);
}

/* Days Counter with Colors */
.days-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    min-width: 70px;
}

.days-number {
    font-size: 0.9rem;
    font-weight: 700;
}

.days-ok .days-number {
    color: var(--status-green);
}

.days-warning .days-number {
    color: var(--status-yellow);
}

.days-danger .days-number {
    color: var(--status-red);
}

.days-expired .days-number {
    color: var(--status-red);
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.btn-calendar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(108, 92, 231, 0.2);
    border: 1px solid var(--accent-primary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.btn-calendar:hover {
    background: rgba(108, 92, 231, 0.4);
    transform: scale(1.1);
}

.btn-calendar:active {
    transform: scale(0.95);
}

.card-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.card-notes {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

.card-category {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-glass);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.btn-action {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-edit {
    background: var(--bg-glass);
    color: var(--accent-secondary);
    border: 1px solid var(--accent-primary);
}

.btn-edit:hover {
    background: rgba(108, 92, 231, 0.2);
}

.btn-delete {
    background: rgba(255, 71, 87, 0.1);
    color: var(--status-red);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.btn-delete:hover {
    background: rgba(255, 71, 87, 0.2);
}

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

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state.visible {
    display: block;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ============================================
   Bottom Navigation
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: calc(var(--nav-height) + 20px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 15px);
    padding-top: 8px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    z-index: 100;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer !important;
    transition: color 0.2s, transform 0.2s;
    border-radius: var(--radius);
    position: relative;
    z-index: 101;
    -webkit-tap-highlight-color: transparent;
}

.nav-btn:hover {
    color: var(--text-secondary);
}

.nav-btn.active {
    color: var(--accent-secondary);
}

.nav-btn.active .nav-icon {
    transform: scale(1.2);
}

.nav-icon {
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

/* ============================================
   Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 71, 87, 0.2);
    color: var(--status-red);
}

.modal-form {
    display: none;
}

.modal-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group select option {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 12px;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    padding: 14px 28px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Weather Styles
   ============================================ */
.weather-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.weather-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Current Weather Card */
.weather-current {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    text-align: center;
}

.weather-current-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.weather-icon {
    font-size: 4rem;
}

.weather-temp {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.weather-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: capitalize;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

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

.weather-detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.weather-detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Hourly Forecast */
.weather-hourly {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.weather-hourly h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.weather-hourly-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.weather-hourly-scroll::-webkit-scrollbar {
    display: none;
}

.weather-hour {
    flex: 0 0 auto;
    text-align: center;
    padding: 12px 16px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    min-width: 70px;
}

.weather-hour-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.weather-hour-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.weather-hour-temp {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Daily Forecast */
.weather-daily {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.weather-daily h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.weather-day {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.weather-day:last-child {
    border-bottom: none;
}

.weather-day-name {
    flex: 1;
    font-weight: 500;
}

.weather-day-icon {
    font-size: 1.5rem;
    margin: 0 16px;
}

.weather-day-temps {
    display: flex;
    gap: 8px;
    align-items: center;
}

.weather-day-high {
    font-weight: 600;
    color: var(--text-primary);
}

.weather-day-low {
    color: var(--text-muted);
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
    position: fixed;
    bottom: calc(var(--nav-height) + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 300;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 400px) {
    .header-title {
        font-size: 1.3rem;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }
}

/* PWA Install Banner */
.install-banner {
    display: none;
    padding: 16px 20px;
    background: var(--accent-gradient);
    color: white;
    text-align: center;
    cursor: pointer;
}

.install-banner.visible {
    display: block;
}

/* ============================================
   Image Upload Styles
   ============================================ */
.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-preview {
    width: 100%;
    height: 150px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
    background: var(--bg-glass);
}

.image-preview:hover {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.1);
}

.image-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.image-preview-placeholder .image-icon {
    font-size: 2rem;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-image {
    padding: 10px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: var(--radius-sm);
    color: var(--status-red);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-remove-image:hover {
    background: rgba(255, 71, 87, 0.2);
}

/* Card Image Thumbnail */
.card-image {
    width: 100%;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.card-image:hover img {
    transform: scale(1.05);
}

.card-image::after {
    content: '🔍';
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.card-image:hover::after {
    opacity: 1;
}

/* Image Modal (Full Screen Preview) */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius);
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.image-modal-close:hover {
    background: rgba(255, 71, 87, 0.5);
}