/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4CAF50, #81C784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-btn.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* Auth blocked state */
.auth-blocked {
    opacity: 0.6;
    cursor: not-allowed !important;
    position: relative;
}

.auth-blocked::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f1d400"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.nav-link.auth-blocked::after {
    right: 8px;
    width: 14px;
    height: 14px;
    right: auto;
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 16px;
    border: 2px solid rgba(255, 193, 7, 0.2);
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-modal-header h3 {
    margin: 0;
    color: #f1d400;
    font-size: 1.3rem;
    font-weight: 600;
}

.auth-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.3s ease;
}

.auth-modal-close:hover {
    color: white;
}

.auth-modal-body {
    padding: 24px;
    text-align: center;
}

.auth-icon {
    width: 48px;
    height: 48px;
    fill: #f1d400;
    margin-bottom: 16px;
}

.auth-modal-body p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.auth-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.auth-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.auth-modal-btn.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.auth-modal-btn.primary:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(76, 175, 80, 0.4);
}

.auth-modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Stats Section */
.stats-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    margin: 0 20px 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    color: white;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Addons Section */
.addons-section {
    padding: 60px 0;
    background: #1a1a1a;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #4CAF50;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
}

/* Search Controls */
.search-controls {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.search-group {
    flex: 1;
    min-width: 300px;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    min-width: 160px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-select:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.15);
}

.filter-select option {
    background: #2d2d2d;
    color: white;
    padding: 8px;
}

/* Addons Grid */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.addon-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.addon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.addon-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.addon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.addon-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.addon-image-placeholder .placeholder-icon {
    width: 48px;
    height: 48px;
    fill: currentColor;
}

.addon-image-placeholder .placeholder-text {
    font-size: 0.9rem;
    text-align: center;
}

.addon-card:hover .addon-image img {
    transform: scale(1.05);
}

.addon-card:hover .addon-image-placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.addon-header {
    padding: 15px 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.addon-category {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(76, 175, 80, 0.3);
    text-transform: capitalize;
    display: flex;
    align-items: center;
}

.category-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.featured-badge {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.addon-content {
    padding: 20px;
    color: white;
}

.addon-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #4CAF50;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.addon-author {
    color: #81C784;
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.addon-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.addon-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    gap: 15px;
    flex-wrap: wrap;
}

.addon-version, .addon-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.addon-version {
    color: #81C784;
}

.addon-date {
    color: rgba(255, 255, 255, 0.7);
}

.addon-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.addon-actions {
    padding: 0 20px 20px;
}

.view-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.view-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(76, 175, 80, 0.4);
}

.btn-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Loading States */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(76, 175, 80, 0.3);
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results, .error-message {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.error-message h3 {
    color: #ff5252;
    margin-bottom: 15px;
}

.retry-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
}

/* Authentication Section */
.auth-section {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.auth-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

/* Note: User dropdown styles are now handled in components.css to avoid conflicts */

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 15px;
        margin: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-btn {
        width: 82%;
        justify-content: center;
        padding: 16px 30px;
    }
    
    .stats-section {
        margin: 0 15px 30px;
        padding: 30px 15px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .search-controls {
        flex-direction: column;
        align-items: stretch;
        margin: 0 15px 30px;
        padding: 20px;
    }
    
    .search-group {
        min-width: unset;
    }
    
    .filter-group {
        justify-content: center;
        gap: 10px;
    }
    
    .filter-select {
        flex: 1;
        min-width: 140px;
    }
    
    .addons-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 20px;
    }
    
    .addon-card {
        border-radius: 12px;
    }
    
    .addon-image {
        height: 180px;
    }
    
    .addon-image-placeholder .placeholder-icon {
        width: 40px;
        height: 40px;
    }
    
    .addon-content {
        padding: 15px;
    }
    
    .addon-actions {
        padding: 0 15px 15px;
    }
    
    .addon-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .addon-stats {
        gap: 15px;
    }
    
    .section-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .addons-grid {
        padding: 0 10px;
    }
    
    .search-controls {
        margin: 0 10px 20px;
        padding: 15px;
    }
    
    .stats-section {
        margin: 0 10px 20px;
        padding: 20px 10px;
    }
    
    .hero-section {
        margin: 10px;
        padding: 40px 15px;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .filter-select {
        min-width: unset;
    }
    
    /* Mobile auth modal styles */
    .auth-modal-content {
        max-width: 340px;
        margin: 20px;
    }
    
    .auth-modal-header {
        padding: 16px 20px;
    }
    
    .auth-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .auth-modal-body {
        padding: 20px;
    }
    
    .auth-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }
    
    .auth-modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .auth-modal-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

/* AdSense Ad Sections */
.ad-section {
    padding: 40px 0;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.ad-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

.ad-inline {
    margin: 40px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

/* AdSense responsive adjustments */
.adsbygoogle {
    display: block !important;
    min-height: 50px;
    background: transparent;
}

/* Dark mode adjustments for ads */
@media (prefers-color-scheme: dark) {
    .ad-section {
        background: #2d2d2d;
    }
    
    .ad-inline {
        background: #3d3d3d;
        border-color: #555;
    }
}

/* Mobile responsive ads */
@media (max-width: 768px) {
    .ad-section {
        padding: 20px 0;
    }
    
    .ad-container {
        padding: 0 15px;
    }
    
    .ad-inline {
        margin: 20px 0;
        padding: 15px;
    }
}
