/* Theme Styles */

.theme-selector {
    position: relative;
    margin-left: 15px;
}

.theme-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: #0766c1;
    transform: translateY(-2px);
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 15px;
    margin-top: 10px;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.theme-dropdown.active {
    display: block;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 5px;
}

.theme-option:hover {
    background: #f8f9fa;
}

.theme-option:last-child {
    margin-bottom: 0;
}

.theme-preview {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.theme-name {
    font-size: 0.9rem;
    color: var(--text-color);
}

.theme-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0;
}

.theme-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    margin-bottom: 5px;
}

.theme-emoji {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark theme styles */
body[data-theme="dark"] {
    background: #1a1a1a;
    color: #e9ecef;
}

body[data-theme="dark"] .post-card,
body[data-theme="dark"] .album-card {
    background: #2d2d2d;
    border-color: #404040;
    color: #e9ecef;
}

body[data-theme="dark"] .modal-content {
    background: #2d2d2d;
    color: #e9ecef;
}

/* Forest theme */
body[data-theme="forest"] {
    background: #F8FFF9;
}

/* Sunset theme */
body[data-theme="sunset"] {
    background: #FFF8F5;
}

/* Purple theme */
body[data-theme="purple"] {
    background: #F9F6FF;
}

/* Special Day Notifications */
.special-day-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    animation: slideInRight 0.5s ease;
    max-width: 350px;
    min-width: 280px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.special-day-notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.special-day-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

.special-day-text {
    flex: 1;
}

.special-day-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
}

.special-day-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.special-day-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.special-day-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* Theme Toggle Button with Emoji Support */
.theme-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.theme-toggle i {
    font-size: 1.2rem;
}

.theme-toggle .theme-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.theme-toggle {
    margin-left: 10px;
}

.theme-toggle:hover {
    background: var(--secondary-color);
}

/* Enhanced Theme Dropdown */
.theme-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 15px;
    margin-top: 5px;
    min-width: 220px;
    max-width: 300px;
    z-index: 10000;
    display: none;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.theme-dropdown.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

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

.theme-dropdown .theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    touch-action: manipulation;
    min-height: 44px;
}

.theme-dropdown .theme-option:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.theme-dropdown .theme-option:active {
    transform: translateX(5px) scale(0.98);
}

.theme-dropdown .theme-option:last-child {
    margin-bottom: 0;
}

.theme-dropdown .theme-preview {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
}

.theme-dropdown .theme-name {
    font-size: 0.9rem;
    color: var(--text-color);
    flex: 1;
}

.theme-dropdown .theme-emoji {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Mobile responsive for dropdown */
@media (max-width: 768px) {
    .theme-dropdown {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .theme-selector {
        margin-left: 5px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        margin-left: 5px;
    }
}

/* Special Day Theme Styles */
.theme-newyear .navbar,
.theme-valentine .navbar,
.theme-womensday .navbar,
.theme-childrensday .navbar,
.theme-youthday .navbar,
.theme-victoryday .navbar,
.theme-republicday .navbar,
.theme-ataturk .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.theme-newyear .gallery-hero {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.theme-valentine .gallery-hero {
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
}

.theme-womensday .gallery-hero {
    background: linear-gradient(135deg, #E91E63 0%, #AD1457 100%);
}

.theme-childrensday .gallery-hero {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
}

.theme-youthday .gallery-hero {
    background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%);
}

.theme-victoryday .gallery-hero {
    background: linear-gradient(135deg, #F57C00 0%, #E65100 100%);
}

.theme-republicday .gallery-hero {
    background: linear-gradient(135deg, #E63946 0%, #C1121F 100%);
}

.theme-ataturk .gallery-hero {
    background: linear-gradient(135deg, #424242 0%, #212121 100%);
}

/* Mobile responsive for notification */
@media (max-width: 768px) {
    .special-day-notification {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}

/* MOBILE PATCH */
@media (max-width: 480px) {
  .theme-btn, .theme-option, .theme-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 16px !important;
    padding: 10px !important;
    border-radius: 10px !important;
  }
  .theme-dropdown {
    left: 6vw !important;
    right: 6vw !important;
    min-width: unset !important;
    max-width: 90vw !important;
    padding: 6vw 2vw !important;
  }
  .theme-preview {
    width: 36px !important;
    height: 36px !important;
  }
}
