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

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #2D5016, #4A7C23, #9CAF56);
    min-height: 100vh;
    color: #F5F5DC;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Enhanced Header Styles */
.header {
    text-align: center;
    padding: 30px 20px;
    background: rgba(45, 80, 22, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    border-bottom: 3px solid #9CAF56;
    backdrop-filter: blur(10px);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pixel" width="4" height="4" patternUnits="userSpaceOnUse"><rect width="2" height="2" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23pixel)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5em;
    color: #FFB347;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 179, 71, 0.4);
    margin-bottom: 10px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.3em;
    color: #F5F5DC;
    font-weight: 300;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Enhanced Navigation Tabs */
.navigation-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(145deg, rgba(245, 245, 220, 0.9), rgba(245, 245, 220, 0.7));
    border: 2px solid transparent;
    border-radius: 25px;
    color: #2D5016;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-icon {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.3));
}

.tab-btn:hover {
    background: linear-gradient(145deg, #FFB347, #FF9500);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(255, 179, 71, 0.4),
        0 0 15px rgba(255, 179, 71, 0.3);
    border-color: #F5F5DC;
    color: #2D5016;
}

.tab-btn.active {
    background: linear-gradient(145deg, #FFB347, #FF9500);
    border-color: #F5F5DC;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(255, 179, 71, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #2D5016;
}

/* Main Collection Container */
.collection-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Enhanced Collection Sections */
.collection-section {
    display: none;
    background: linear-gradient(145deg, rgba(245, 245, 220, 0.95), rgba(245, 245, 220, 0.9));
    border-radius: 15px;
    margin-bottom: 30px;
    padding: 30px;
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.collection-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFB347, #9CAF56, #FFB347);
    border-radius: 15px 15px 0 0;
}

.collection-section.active {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2.2em;
    color: #2D5016;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(255, 179, 71, 0.3);
}

/* Enhanced Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-bar select {
    padding: 12px 18px;
    border: 2px solid #9CAF56;
    border-radius: 12px;
    background: linear-gradient(145deg, white, #f8f8f8);
    color: #2D5016;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 40px;
}

.filter-bar select:hover,
.filter-bar select:focus {
    border-color: #FFB347;
    box-shadow: 
        0 0 15px rgba(255, 179, 71, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* Enhanced Item Grids */
.item-grid {
    display: grid;
    gap: 25px;
    justify-items: center;
    perspective: 1000px;
}

.pokemon-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

.minecraft-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    max-width: 1000px;
    margin: 0 auto;
}

.garden-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    max-width: 1100px;
    margin: 0 auto;
}

/* Enhanced Collection Items with Card Flip */
.collection-item {
    background: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    width: 100%;
    max-width: 200px;
}

.card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
    position: relative;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-front {
    background: linear-gradient(145deg, #fff, #f8f8ff);
}

.card-back {
    background: linear-gradient(145deg, #f0f0f0, #e8e8e8);
    transform: rotateY(180deg);
    padding: 15px;
}

.card-stats {
    text-align: left;
    color: #2D5016;
}

.card-stats h4 {
    margin-bottom: 10px;
    text-align: center;
    color: #9CAF56;
    font-weight: bold;
}

.card-stats .stat {
    margin-bottom: 5px;
    font-size: 0.85em;
    font-weight: 600;
}

.rarity-badge, .material-badge, .season-badge {
    background: #9CAF56;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

/* Pokemon Items */
.pokemon-item {
    border: 3px solid #FFB347;
    min-height: 300px;
}

.pokemon-item .card-front {
    background: linear-gradient(145deg, #fff, #fff8dc);
}

.pokemon-item.holographic {
    border-color: #FFD700;
    position: relative;
}

.pokemon-item.holographic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: holographicShimmer 3s ease-in-out infinite;
    border-radius: 15px;
    pointer-events: none;
}

/* Minecraft Items */
.minecraft-item {
    border: 3px solid #8B4513;
    min-height: 180px;
}

.minecraft-item .card-front {
    background: linear-gradient(145deg, #fff, #f0f0f0);
}

/* Garden Items */
.garden-item {
    border: 3px solid #32CD32;
    min-height: 200px;
}

.garden-item .card-front {
    background: linear-gradient(145deg, #fff, #f0fff0);
}

/* Enhanced Hover Effects */
.collection-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(156, 175, 86, 0.3);
    z-index: 10;
}

.pokemon-item:hover {
    box-shadow: 
        0 20px 40px rgba(255, 179, 71, 0.4),
        0 0 30px rgba(255, 215, 0, 0.3);
}

.minecraft-item:hover {
    box-shadow: 
        0 20px 40px rgba(139, 69, 19, 0.4),
        0 0 30px rgba(160, 82, 45, 0.3);
}

.garden-item:hover {
    box-shadow: 
        0 20px 40px rgba(50, 205, 50, 0.4),
        0 0 30px rgba(34, 139, 34, 0.3);
}

.item-image {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 15px;
    border-radius: 8px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.pokemon-item .item-image {
    max-width: 140px;
    max-height: 200px;
}

.minecraft-item .item-image {
    max-width: 90px;
    max-height: 90px;
}

.garden-item .item-image {
    max-width: 110px;
    max-height: 110px;
}

.item-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    opacity: 0.7;
}

.item-label {
    font-weight: 600;
    color: #2D5016;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.item-indicator {
    background: linear-gradient(145deg, rgba(45, 80, 22, 0.8), rgba(45, 80, 22, 0.9));
    color: #FFB347;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pokemon-item .item-indicator {
    background: linear-gradient(145deg, rgba(255, 179, 71, 0.8), rgba(255, 149, 0, 0.9));
    color: #2D5016;
}

.minecraft-item .item-indicator {
    background: linear-gradient(145deg, rgba(139, 69, 19, 0.8), rgba(160, 82, 45, 0.9));
    color: #F5F5DC;
}

.garden-item .item-indicator {
    background: linear-gradient(145deg, rgba(50, 205, 50, 0.8), rgba(34, 139, 34, 0.9));
    color: #2D5016;
}

/* Enhanced Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, #F5F5DC, #FFFAF0);
    margin: 2% auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    position: relative;
    border: 2px solid #9CAF56;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #2D5016;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: linear-gradient(145deg, rgba(255, 179, 71, 0.9), rgba(255, 149, 0, 0.9));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 179, 71, 0.3);
}

.close:hover {
    background: linear-gradient(145deg, #FFB347, #FF9500);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 179, 71, 0.4);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    padding: 40px;
    color: #2D5016;
}

.modal-image-section {
    text-align: center;
}

.large-item-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 15px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(156, 175, 86, 0.1);
    image-rendering: pixelated;
    margin-bottom: 25px;
    border: 3px solid rgba(156, 175, 86, 0.3);
    transition: all 0.3s ease;
}

.large-item-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Enhanced Artwork Gallery */
.artwork-gallery {
    margin: 20px 0;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #9CAF56;
    transition: all 0.3s ease;
    image-rendering: pixelated;
}

.gallery-thumbnail:hover {
    border-color: #FFB347;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 179, 71, 0.3);
}

.item-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.favorite-btn,
.collection-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid #9CAF56;
    background: linear-gradient(145deg, white, #f8f8f8);
    color: #2D5016;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover,
.collection-btn:hover {
    background: linear-gradient(145deg, #FFB347, #FF9500);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 179, 71, 0.3);
    color: white;
}

.favorite-btn.active {
    background: linear-gradient(145deg, #FF6B6B, #FF5252);
    color: white;
    border-color: #FF6B6B;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.collection-btn.active {
    background: linear-gradient(145deg, #4ECDC4, #26A69A);
    color: white;
    border-color: #4ECDC4;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.modal-info h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5em;
    color: #2D5016;
    margin-bottom: 25px;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.1),
        0 0 15px rgba(255, 179, 71, 0.2);
}

.modal-info h4 {
    font-weight: 600;
    color: #2D5016;
    margin: 25px 0 15px 0;
    font-size: 1.3em;
    border-bottom: 3px solid #9CAF56;
    padding-bottom: 8px;
    position: relative;
}

.modal-info h4::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #FFB347;
}

.modal-info p {
    color: #2D5016;
    line-height: 1.7;
    margin-bottom: 15px;
}

.item-stats {
    background: linear-gradient(145deg, rgba(156, 175, 86, 0.15), rgba(156, 175, 86, 0.1));
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 5px solid #9CAF56;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid rgba(156, 175, 86, 0.2);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item span:first-child {
    color: #2D5016;
    font-weight: 700;
}

.stat-item span:last-child {
    color: #9CAF56;
    font-weight: 600;
}

/* Related Items */
.related-items {
    margin-top: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.related-item {
    background: rgba(156, 175, 86, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-item:hover {
    background: rgba(156, 175, 86, 0.2);
    border-color: #FFB347;
    transform: translateY(-3px);
}

.related-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
    image-rendering: pixelated;
}

.related-item span {
    font-size: 0.8em;
    font-weight: 600;
    color: #2D5016;
}

/* Enhanced Progress Panel with Visual Preview */
.progress-panel {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: linear-gradient(145deg, rgba(245, 245, 220, 0.95), rgba(245, 245, 220, 0.9));
    padding: 25px;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid #9CAF56;
    min-width: 280px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.progress-panel h4 {
    color: #2D5016;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-item {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(156, 175, 86, 0.2);
}

.progress-item span {
    display: block;
    color: #2D5016;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.progress-bar {
    background: rgba(156, 175, 86, 0.2);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid rgba(156, 175, 86, 0.3);
}

.progress-fill {
    background: linear-gradient(90deg, #9CAF56, #FFB347, #9CAF56);
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 2s ease-in-out infinite;
}

/* Collection Preview Thumbnails */
.collection-preview {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.collection-preview-thumb {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #9CAF56;
    image-rendering: pixelated;
}

/* Enhanced Search Panel */
.search-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 350px;
}

#universal-search {
    padding: 15px 20px;
    border: 2px solid #9CAF56;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(245, 245, 220, 0.95), rgba(245, 245, 220, 0.9));
    color: #2D5016;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#universal-search:focus {
    outline: none;
    border-color: #FFB347;
    box-shadow: 
        0 0 20px rgba(255, 179, 71, 0.3),
        0 4px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-suggestions {
    display: none;
    background: linear-gradient(145deg, white, #f8f8f8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(156, 175, 86, 0.2);
}

.suggestion {
    padding: 12px 18px;
    color: #2D5016;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(156, 175, 86, 0.1);
}

.suggestion:last-child {
    border-bottom: none;
}

.suggestion:hover {
    background: linear-gradient(145deg, #FFB347, rgba(255, 179, 71, 0.8));
    color: white;
}

/* Visual Search Results */
.visual-search-results {
    display: none;
    background: linear-gradient(145deg, white, #f8f8f8);
    border-radius: 15px;
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(156, 175, 86, 0.2);
}

.visual-search-results h4 {
    color: #2D5016;
    margin-bottom: 15px;
    font-family: 'Fredoka One', cursive;
}

.visual-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.visual-result-item {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.visual-result-item:hover {
    border-color: #FFB347;
    background: rgba(255, 179, 71, 0.1);
    transform: scale(1.05);
}

.visual-result-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 8px;
    image-rendering: pixelated;
}

.visual-result-item span {
    display: block;
    font-size: 0.8em;
    font-weight: 600;
    color: #2D5016;
    margin-bottom: 2px;
}

.visual-result-item small {
    color: #9CAF56;
    font-size: 0.7em;
    text-transform: uppercase;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.9), rgba(74, 124, 35, 0.9));
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 179, 71, 0.3);
    border-top: 4px solid #FFB347;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-overlay p {
    color: #FFB347;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes holographicShimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes progressShimmer {
    0% { left: -50%; }
    100% { left: 100%; }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }

    .navigation-tabs {
        gap: 10px;
    }

    .tab-btn {
        padding: 12px 18px;
        font-size: 0.85em;
        flex-direction: column;
        gap: 5px;
    }

    .tab-icon {
        width: 20px;
        height: 20px;
    }

    .item-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }

    .collection-item {
        min-height: 200px;
    }

    .pokemon-item {
        min-height: 260px;
    }

    .modal-content {
        width: 95%;
        margin: 3% auto;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 25px;
    }

    .progress-panel {
        position: static;
        transform: none;
        margin: 20px;
        right: auto;
        min-width: auto;
        width: calc(100% - 40px);
    }

    .search-panel {
        position: static;
        margin: 20px;
        right: auto;
        width: calc(100% - 40px);
    }

    .filter-bar {
        gap: 15px;
    }

    .filter-bar select {
        min-width: 160px;
        padding: 10px 15px;
    }

    .large-item-image {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 25px 20px;
    }

    .item-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .collection-container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .collection-section {
        padding: 25px 20px;
    }

    .modal-body {
        padding: 25px 20px;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 0.8em;
    }

    .filter-bar select {
        min-width: 140px;
        font-size: 0.9em;
    }

    .visual-results-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
}

/* Print styles */
@media print {
    .header, .navigation-tabs, .modal, .progress-panel, .search-panel, .loading-overlay {
        display: none !important;
    }
    
    .collection-container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .collection-section {
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
    }

    .collection-item {
        break-inside: avoid;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .collection-item {
        border-width: 4px;
    }
    
    .item-indicator {
        background: #000;
        color: #fff;
    }
    
    .tab-btn {
        border-width: 3px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card-inner {
        transition: none;
    }
    
    .collection-item:hover {
        transform: none;
    }
}