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

:root {
    --primary-gradient: linear-gradient(135deg, #D4A574 0%, #C98D5A 50%, #E6C9A8 100%);
    --secondary-gradient: linear-gradient(135deg, #D4A574 0%, #A0714D 100%);
    --accent-color: #F4D4A0;
    --text-light: #fef8f0;
    --text-dark: #3d2817;
    --bg-primary: #D4A574;
    --bg-secondary: #A0714D;
    --teddy-brown: #8B5A3C;
    --teddy-tan: #E6C9A8;
    --teddy-cream: #FFF8E7;
    --teddy-honey: #F4D4A0;
}

body.dark-mode {
    --text-light: #1a1a2e;
    --text-dark: #fff;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
}

#themeBtn {
    background: rgba(244, 212, 160, 0.4);
    border: 2px solid rgba(212, 165, 116, 0.5);
    color: #3d2817;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2em;
    box-shadow: 0 5px 15px rgba(139, 90, 60, 0.2);
}

#themeBtn:hover {
    background: rgba(244, 212, 160, 0.6);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(139, 90, 60, 0.3);
}

body.dark-mode #themeBtn {
    background: rgba(141, 90, 60, 0.6);
    color: #FFF8E7;
}

body.dark-mode {
    background: linear-gradient(135deg, #4A3728 0%, #5C4033 50%, #3E2723 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Blob Animations */
.blob {
    position: fixed;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #F4D4A0, #D4A574);
    top: -100px;
    left: -100px;
    animation: blob-animation-1 15s infinite;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #D4A574, #A0714D);
    bottom: -50px;
    right: -50px;
    animation: blob-animation-2 18s infinite;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #C98D5A, #E6C9A8);
    top: 50%;
    left: 50%;
    animation: blob-animation-3 20s infinite;
}

@keyframes blob-animation-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

@keyframes blob-animation-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -50px) scale(0.9); }
}

@keyframes blob-animation-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* Floating Characters - Teddy Bear & Pookie */
.floating-character {
    position: fixed;
    font-size: 3em;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 4px 8px rgba(212, 165, 116, 0.2));
    transition: opacity 0.3s ease;
}

/* Different animation positions and timings */
.char-teddy-1 {
    top: 10%;
    left: 5%;
    animation: float-slow 20s ease-in-out infinite;
    font-size: 4em;
}

.char-pookie-1 {
    top: 20%;
    right: 8%;
    animation: float-medium 18s ease-in-out infinite;
    animation-delay: 2s;
}

.char-teddy-2 {
    top: 40%;
    left: 3%;
    animation: float-fast 16s ease-in-out infinite;
    animation-delay: 1s;
    font-size: 3.5em;
}

.char-pookie-2 {
    top: 15%;
    right: 15%;
    animation: float-slow 22s ease-in-out infinite;
    animation-delay: 3s;
    font-size: 2.5em;
}

.char-teddy-3 {
    bottom: 20%;
    left: 10%;
    animation: float-medium 19s ease-in-out infinite;
    animation-delay: 4s;
}

.char-pookie-3 {
    bottom: 15%;
    right: 10%;
    animation: float-fast 17s ease-in-out infinite;
    animation-delay: 1.5s;
}

.char-star-1 {
    top: 50%;
    left: 15%;
    animation: float-slow 21s ease-in-out infinite;
    animation-delay: 5s;
    font-size: 2.8em;
}

.char-pookie-4 {
    bottom: 30%;
    right: 5%;
    animation: float-medium 18s ease-in-out infinite;
    animation-delay: 2.5s;
    font-size: 3.2em;
}

.char-teddy-4 {
    top: 60%;
    right: 20%;
    animation: float-fast 16s ease-in-out infinite;
    animation-delay: 3.5s;
}

.char-pookie-5 {
    top: 35%;
    right: 30%;
    animation: float-slow 20s ease-in-out infinite;
    animation-delay: 0.5s;
    font-size: 2.6em;
}

/* Black Hearts - Pookie Vibes */
.char-black-heart-1 {
    top: 25%;
    left: 20%;
    animation: float-medium 19s ease-in-out infinite;
    animation-delay: 1.2s;
    font-size: 2.8em;
}

.char-black-heart-2 {
    bottom: 25%;
    left: 25%;
    animation: float-fast 17s ease-in-out infinite;
    animation-delay: 4s;
    font-size: 3em;
}

.char-black-heart-3 {
    top: 45%;
    right: 25%;
    animation: float-slow 22s ease-in-out infinite;
    animation-delay: 2.8s;
    font-size: 2.7em;
}

.char-black-heart-4 {
    bottom: 40%;
    right: 15%;
    animation: float-medium 20s ease-in-out infinite;
    animation-delay: 5.5s;
    font-size: 2.9em;
}

/* Pookie Ribbons */
.char-ribbon-1 {
    top: 30%;
    left: 8%;
    animation: float-fast 18s ease-in-out infinite;
    animation-delay: 0.8s;
    font-size: 3.3em;
}

.char-ribbon-2 {
    top: 55%;
    left: 30%;
    animation: float-medium 21s ease-in-out infinite;
    animation-delay: 3.2s;
    font-size: 3.1em;
}

.char-ribbon-3 {
    bottom: 35%;
    right: 30%;
    animation: float-slow 19s ease-in-out infinite;
    animation-delay: 1.5s;
    font-size: 2.8em;
}

.char-ribbon-4 {
    top: 70%;
    right: 8%;
    animation: float-fast 20s ease-in-out infinite;
    animation-delay: 4.5s;
    font-size: 3.2em;
}

/* Floating Animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-30px) translateX(15px) rotate(5deg); }
    50% { transform: translateY(-60px) translateX(-10px) rotate(0deg); }
    75% { transform: translateY(-30px) translateX(20px) rotate(-5deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-40px) translateX(-20px) rotate(-8deg); }
    50% { transform: translateY(-70px) translateX(10px) rotate(0deg); }
    75% { transform: translateY(-40px) translateX(-15px) rotate(8deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-50px) translateX(25px) rotate(10deg); }
    50% { transform: translateY(-80px) translateX(-20px) rotate(0deg); }
    75% { transform: translateY(-50px) translateX(30px) rotate(-10deg); }
}

/* Glow effect for characters */
body:hover .floating-character {
    opacity: 0.25;
}

body.dark-mode .floating-character {
    opacity: 0.15;
    filter: drop-shadow(0 4px 8px rgba(244, 212, 160, 0.15));
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
    background: rgba(244, 212, 160, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 15px 30px;
    border: 2px solid rgba(212, 165, 116, 0.3);
    animation: slideDown 0.8s ease-out;
    box-shadow: 0 8px 32px rgba(139, 90, 60, 0.1);
}

.nav-brand {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.nav-brand i {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: rgba(244, 212, 160, 0.2);
    border: 1.5px solid rgba(212, 165, 116, 0.3);
    color: #3d2817;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95em;
    position: relative;
}

.nav-btn:hover {
    background: rgba(244, 212, 160, 0.35);
    color: #3d2817;
    box-shadow: 0 5px 15px rgba(139, 90, 60, 0.15);
}

.nav-btn.active {
    background: linear-gradient(135deg, #D4A574 0%, #A0714D 100%);
    border-color: #F4D4A0;
    color: #3d2817;
    box-shadow: 0 8px 20px rgba(139, 90, 60, 0.3);
}

.fav-badge {
    background: var(--accent-color);
    color: #1a1a2e;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 0.8em;
    font-weight: 700;
    margin-left: 5px;
}

.nav-info {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 50px;
    animation: slideDown 0.8s ease-out 0.1s both;
}

header h1 {
    font-size: 4em;
    color: var(--text-light);
    margin-bottom: 15px;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    font-weight: 800;
}

header h1 i {
    margin-right: 20px;
    color: var(--accent-color);
    animation: float 3s ease-in-out infinite;
}

.subtitle {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    letter-spacing: 0.5px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Search Form */
.search-form {
    margin-bottom: 60px;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.search-wrapper {
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 60px;
    padding: 8px 8px 8px 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    transform: translateY(-5px);
}

.search-box i {
    color: #999;
    font-size: 1.3em;
    margin-right: 10px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1em;
    padding: 15px 0;
    color: var(--text-dark);
    outline: none;
}

.search-input::placeholder {
    color: #bbb;
}

.search-btn {
    padding: 12px 35px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #D4A574 0%, #A0714D 100%);
    color: #3d2817;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 5px;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(139, 90, 60, 0.2);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(139, 90, 60, 0.4);
}

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

/* Search Suggestions */
.search-suggestions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.suggestion-chip {
    background: rgba(244, 212, 160, 0.25);
    color: #3d2817;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    border: 1.5px solid rgba(212, 165, 116, 0.4);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.suggestion-chip:hover {
    background: rgba(244, 212, 160, 0.4);
    border-color: rgba(212, 165, 116, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 90, 60, 0.15);
}

/* Loader */
.loader {
    display: none;
    text-align: center;
    padding: 100px 20px;
    animation: fadeIn 0.3s ease-in;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 165, 116, 0.2);
    border-top: 4px solid #F4D4A0;
    border-right: 4px solid #D4A574;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader p {
    color: var(--text-light);
    font-size: 1.2em;
    font-weight: 500;
}

/* Images Container */
.images-container {
    animation: fadeIn 0.5s ease-in 0.3s both;
    margin-bottom: 60px;
}

.masonry {
    column-count: 5;
    column-gap: 25px;
    margin: 20px 0;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: popIn 0.6s ease-out;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    background: transparent;
    border: none;
}

.image-wrapper:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(240, 147, 251, 0.3);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    object-fit: cover;
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.85), rgba(244, 212, 160, 0.85));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.4s ease;
    opacity: 0;
    border-radius: 20px;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.image-overlay-content {
    color: var(--text-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.image-wrapper:hover .image-overlay-content {
    transform: scale(1);
}

.image-overlay-content i {
    font-size: 2.5em;
}

.image-overlay-content p {
    font-size: 0.95em;
    font-weight: 500;
}

.image-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 150px;
}

.image-wrapper:hover .image-actions {
    opacity: 1;
}

.action-btn {
    background: rgba(255, 248, 231, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1em;
    color: #A0714D;
    box-shadow: 0 4px 12px rgba(139, 90, 60, 0.15);
}

.action-btn:hover {
    background: #F4D4A0;
    color: #3d2817;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(139, 90, 60, 0.25);
}

.action-btn.liked {
    background: #F4D4A0;
    color: #C98D5A;
}

/* No Results */
.no-results {
    display: none;
    text-align: center;
    padding: 120px 20px;
    color: var(--text-light);
    animation: fadeIn 0.5s ease-in;
}

.no-results-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.no-results i {
    font-size: 5em;
    opacity: 0.7;
}

.no-results h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Empty State */
.empty-state {
    display: none;
    text-align: center;
    padding: 120px 20px;
    color: var(--text-light);
    animation: fadeIn 0.5s ease-in;
}

.empty-state i {
    font-size: 5em;
    opacity: 0.7;
    margin-bottom: 15px;
}

.empty-state h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Sections */
.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

/* History List */
.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.history-item {
    background: rgba(244, 212, 160, 0.2);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(212, 165, 116, 0.3);
    padding: 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #3d2817;
    font-weight: 500;
}

.history-item:hover {
    background: rgba(244, 212, 160, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 90, 60, 0.15);
}

.history-item-term {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.history-item-time {
    font-size: 0.85em;
    opacity: 0.8;
}

/* Filters Bar */
.filters-bar {
    margin: 20px 0;
    text-align: center;
}

.filter-toggle {
    background: rgba(244, 212, 160, 0.3);
    border: 1.5px solid rgba(212, 165, 116, 0.4);
    color: #3d2817;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-toggle:hover {
    background: rgba(244, 212, 160, 0.45);
    box-shadow: 0 5px 15px rgba(139, 90, 60, 0.2);
}

.filters-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
    background: rgba(244, 212, 160, 0.15);
    padding: 20px;
    border-radius: 20px;
    border: 1.5px solid rgba(212, 165, 116, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(139, 90, 60, 0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    color: #3d2817;
    font-weight: 600;
}

.filter-group select {
    padding: 10px;
    border-radius: 10px;
    border: 1.5px solid rgba(212, 165, 116, 0.4);
    background: rgba(255, 248, 231, 0.8);
    color: #3d2817;
    cursor: pointer;
    font-weight: 500;
}

/* Collections */
.collections-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.collection-card {
    background: rgba(244, 212, 160, 0.2);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(212, 165, 116, 0.3);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(139, 90, 60, 0.1);
}

.collection-card:hover {
    transform: translateY(-10px);
    background: rgba(244, 212, 160, 0.35);
    box-shadow: 0 15px 40px rgba(139, 90, 60, 0.2);
}

.collection-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #3d2817;
    margin-bottom: 10px;
}

.collection-count {
    color: #8B5A3C;
    font-size: 0.95em;
    font-weight: 500;
}

.new-collection-btn {
    grid-column: 1 / -1;
    justify-self: center;
    background: linear-gradient(135deg, #D4A574 0%, #A0714D 100%);
    border: none;
    color: #3d2817;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 90, 60, 0.2);
}

.new-collection-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(139, 90, 60, 0.3);
}

/* Stats Dashboard */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: rgba(244, 212, 160, 0.2);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(212, 165, 116, 0.3);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    color: #3d2817;
    box-shadow: 0 5px 15px rgba(139, 90, 60, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 90, 60, 0.15);
}

.stat-value {
    font-size: 2.5em;
    font-weight: 800;
    color: #D4A574;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    opacity: 0.85;
    font-weight: 600;
}

/* Image Info Modal */
.image-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.image-info-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.info-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.info-value {
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.share-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-btn:hover {
    transform: scale(1.05);
}

.share-twitter { background: #1DA1F2; color: #fff; }
.share-facebook { background: #4267B2; color: #fff; }
.share-pinterest { background: #E60023; color: #fff; }
.share-copy { background: #667eea; color: #fff; }

/* Rating */
.rating-container {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin: 15px 0;
}

.star {
    font-size: 1.5em;
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s ease;
}

.star:hover,
.star.active {
    color: #D4A574;
}

/* Theme Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: linear-gradient(135deg, #FFF8E7 0%, #E6C9A8 100%);
    border-radius: 30px;
    padding: 40px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(139, 90, 60, 0.3);
    border: 2px solid rgba(212, 165, 116, 0.3);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5em;
    cursor: pointer;
    color: #3d2817;
    transition: all 0.3s ease;
}

.close:hover {
    transform: scale(1.2);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #3d2817;
    font-weight: 700;
}

.color-picker-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.color-picker-group label {
    font-weight: 600;
    color: #3d2817;
}

.color-picker-group input[type="color"] {
    width: 100%;
    height: 50px;
    border: 2px solid rgba(212, 165, 116, 0.5);
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 90, 60, 0.15);
}

.reset-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #D4A574 0%, #A0714D 100%);
    color: #3d2817;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 90, 60, 0.2);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 90, 60, 0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: #3d2817;
    border-top: 2px solid rgba(212, 165, 116, 0.3);
    font-size: 0.95em;
    animation: fadeIn 0.8s ease-out 0.5s both;
    font-weight: 500;
}

footer i {
    color: #D4A574;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.7) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    header h1 {
        font-size: 3em;
    }

    .masonry {
        column-count: 4;
        column-gap: 20px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }

    .nav-menu {
        width: 100%;
        gap: 10px;
    }

    .nav-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.9em;
    }

    .masonry {
        column-count: 3;
        column-gap: 15px;
    }

    .search-box {
        flex-wrap: wrap;
    }

    .container {
        padding: 30px 20px;
    }

    .blob-1, .blob-2, .blob-3 {
        opacity: 0.08;
    }

    .history-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 0.95em;
    }

    .masonry {
        column-count: 2;
        column-gap: 12px;
    }

    .image-wrapper {
        margin-bottom: 12px;
    }

    .container {
        padding: 20px 15px;
    }

    .nav-brand {
        font-size: 1.3em;
    }

    .nav-info {
        font-size: 0.8em;
    }

    .search-suggestions {
        gap: 8px;
    }

    .suggestion-chip {
        font-size: 0.85em;
        padding: 8px 15px;
    }

    .history-list {
        grid-template-columns: 1fr;
    }
}