/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.logo h1 a {
    color: white;
    text-decoration: none;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-nav a:hover {
    opacity: 0.8;
}


.admin-link {
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.9rem;
}

.admin-link:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    padding: 4rem 0;
    background: white;
}

.search-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

/* Unified Search Styles */
.unified-search {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-input-container {
    margin-bottom: 2rem;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input-group input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    outline: none;
    color: #333;
}

.search-input-group input::placeholder {
    color: #6c757d;
}

.search-input-group button {
    padding: 1.2rem 2rem;
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.search-input-group button:hover {
    background: #5a6fd8;
}

/* Site Buttons */
.site-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.site-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.site-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.site-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.site-btn i {
    font-size: 2rem;
    color: #667eea;
    transition: color 0.3s ease;
}

.site-btn.active i {
    color: white;
}

.site-btn span {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    transition: color 0.3s ease;
}

.site-btn.active span {
    color: white;
}

.site-btn small {
    font-size: 0.85rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.site-btn.active small {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design for Unified Search */
@media (max-width: 768px) {
    .unified-search {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .search-input-group input {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
    
    .search-input-group button {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .site-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .site-btn {
        padding: 1.2rem 0.8rem;
    }
    
    .site-btn i {
        font-size: 1.5rem;
    }
    
    .site-btn span {
        font-size: 1rem;
    }
    
    .site-btn small {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .unified-search {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .site-buttons {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .site-btn {
        padding: 1rem 0.5rem;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 1rem;
    }
    
    .site-btn i {
        font-size: 1.3rem;
        min-width: 24px;
    }
    
    .site-btn span {
        font-size: 0.95rem;
    }
    
    .site-btn small {
        font-size: 0.75rem;
        margin-left: auto;
    }
}

/* Legacy search-grid styles (keeping for backward compatibility) */
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.search-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.search-box h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.search-box h3 a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.search-box h3 a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.search-box h3 i {
    margin-right: 0.5rem;
}

.search-box p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.search-input-group {
    display: flex;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.search-input-group:focus-within {
    border-color: #667eea;
}

.search-input-group input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.search-input-group button {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.search-input-group button:hover {
    background: #5a6fd8;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.4rem;
}

.feature-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Affiliate Section */
.affiliate-section {
    padding: 4rem 0;
    background: white;
}

.affiliate-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

.affiliate-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.affiliate-text h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.8rem;
}

.affiliate-text p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.affiliate-text ul {
    list-style: none;
    margin-bottom: 2rem;
}

.affiliate-text li {
    padding: 0.5rem 0;
    color: #666;
}

.affiliate-text li i {
    color: #28a745;
    margin-right: 0.5rem;
}

.affiliate-image {
    text-align: center;
}

.affiliate-image i {
    font-size: 8rem;
    color: #667eea;
    opacity: 0.3;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* About Page Styles */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-content {
    padding: 4rem 0;
}

.about-section {
    margin-bottom: 4rem;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.about-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-item .feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #333;
}

.feature-item p {
    color: #666;
    text-align: center;
    margin: 0;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.platform-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.platform-item:hover {
    transform: translateY(-5px);
}

.platform-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.platform-icon i {
    font-size: 2rem;
    color: white;
}

.platform-item h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.platform-item p {
    color: #666;
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.partner-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.partner-item:hover {
    transform: translateY(-5px);
}

.partner-item h3 {
    margin-bottom: 1rem;
    color: #333;
}

.partner-item p {
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 2rem;
    color: #667eea;
    margin-right: 1rem;
    width: 50px;
    text-align: center;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item p {
    color: #666;
    margin: 0;
    text-align: left;
}

/* Themes Page Styles */
.themes-content {
    padding: 4rem 0;
}

/* Search and Filter Section */
.search-filter-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid #e9ecef;
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
}

.search-input-group {
    position: relative;
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    color: #333;
}

.search-input-group input::placeholder {
    color: #6c757d;
}

.search-input-group button {
    padding: 1rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input-group button:hover {
    background: #5a6fd8;
}

/* Category Filter Styles */
.category-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 280px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.filter-label i {
    color: #667eea;
    font-size: 1.1rem;
}

.filter-select-wrapper {
    position: relative;
    flex: 1;
}

.filter-select-wrapper select {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-select-wrapper select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select-wrapper select:hover {
    border-color: #667eea;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.filter-select-wrapper:hover .select-arrow {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .category-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        min-width: auto;
    }
    
    .filter-label {
        justify-content: center;
    }
    
    .search-filter-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .search-filter-section {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .search-input-group input,
    .filter-select-wrapper select {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .search-input-group button {
        padding: 0.875rem 1rem;
    }
}

/* Legacy category filter styles (keeping for backward compatibility) */
.category-filter {
    margin-bottom: 3rem;
    text-align: center;
}

.category-filter h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border: 2px solid #667eea;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.theme-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.theme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.theme-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

.no-image-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.no-image-placeholder span {
    font-weight: 500;
}

/* Latest Items Section */
.latest-items-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.latest-items-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 2.5rem;
}

.latest-items-section > .container > p {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.latest-items-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.latest-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.latest-item-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.latest-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.latest-item-card .item-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.latest-item-card .item-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.latest-item-card .badge-category {
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.latest-item-card .item-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.latest-item-card .item-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-item-card .item-price {
    color: #28a745;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.latest-item-card .item-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.latest-item-card .stars {
    display: flex;
    gap: 0.1rem;
}

.latest-item-card .stars i {
    color: #ddd;
    font-size: 0.9rem;
}

.latest-item-card .stars i.active {
    color: #ffc107;
}

.latest-item-card .rating-text {
    color: #666;
    font-size: 0.9rem;
}

.latest-item-card .item-actions {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid #f0f0f0;
}

.latest-item-card .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.latest-item-card .btn-outline {
    background: transparent;
    border: 1px solid #667eea;
    color: #667eea;
}

.latest-item-card .btn-outline:hover {
    background: #667eea;
    color: white;
}

.latest-item-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.latest-item-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.view-more {
    text-align: center;
    margin-top: 2rem;
}

.view-more .btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-more .btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .latest-items-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .latest-items-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .latest-item-card .item-actions {
        flex-direction: column;
    }
}

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

.theme-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}


.theme-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.theme-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.theme-header h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
}

.theme-rating {
    text-align: right;
    margin-left: 1rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 0.3rem;
}

.stars i {
    color: #ddd;
    font-size: 0.9rem;
}

.stars i.filled {
    color: #ffc107;
}

.rating-text {
    font-size: 0.8rem;
    color: #666;
}

.theme-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.theme-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: #f8f9fa;
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.theme-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.theme-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
}

.theme-marketplace {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.theme-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 1rem;
}

.btn-preview,
.btn-purchase {
    flex: 1;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-preview {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
}

.btn-preview:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.btn-purchase {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.btn-purchase:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-results h3 {
    margin-bottom: 1rem;
    color: #333;
}


/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .affiliate-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .affiliate-image i {
        font-size: 5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .features-grid,
    .platforms-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* Themes page mobile styles */
    .themes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
    
    .theme-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .theme-rating {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: left;
    }
    
    .theme-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .theme-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: auto;
        padding-top: 1rem;
    }
    
    .btn-preview,
    .btn-purchase {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .search-box,
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .search-section h2,
    .features-section h2,
    .affiliate-section h2 {
        font-size: 2rem;
    }
    
    /* Themes page small mobile styles */
    .themes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .theme-card {
        margin: 0 0.5rem;
    }
    
    .theme-content {
        padding: 1rem;
    }
    
    .theme-header h3 {
        font-size: 1.1rem;
    }
    
    .theme-price {
        font-size: 1.3rem;
    }
    
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        position: absolute;
        right: 20px;
        top: 0;
        bottom: 0;
        align-items: center;
        height: 100%;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        z-index: 1000;
        padding-top: 80px;
    }
    
    .main-nav.active ul {
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 2rem;
    }
    
    .main-nav.active li {
        text-align: center;
    }
    
    .main-nav.active a {
        font-size: 1.5rem;
        padding: 1rem;
        display: block;
        border-radius: 8px;
        transition: background-color 0.3s;
    }
    
    .main-nav.active a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .header-content {
        justify-content: flex-start;
        position: relative;
    }
    
    .logo {
        flex: 1;
    }
}
