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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    font-size: 13px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    display: flex;
    height: 100vh;
    max-height: 1080px;
    min-height: 900px;
    background: #0a0a0a;
}

.sidebar {
    width: 280px;
    background: #111111;
    border-right: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.right-sidebar {
    border-right: none;
    border-left: 1px solid #1a1a1a;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 32px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.3));
    animation: logo-pulse 3s infinite ease-in-out;
}

@keyframes logo-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(76, 175, 80, 0.6));
    }
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

.tagline {
    font-size: 11px;
    color: #4caf50;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-title {
    font-size: 11px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #b0b0b0;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-size: 13px;
    font-family: inherit;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.1), transparent);
    opacity: 0;
    border-radius: 6px;
    transition: opacity 0.2s ease;
    z-index: 0;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active .nav-link {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.nav-item.active .nav-link::before {
    opacity: 1;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.15), transparent);
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.nav-text {
    flex: 1;
    z-index: 1;
}

.project-info {
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.project-info p {
    font-size: 11px;
    color: #b0b0b0;
    line-height: 1.4;
    margin: 0;
}

.project-info strong {
    color: #4caf50;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.social-links-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.social-link-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-link-footer:hover {
    transform: translateY(-2px);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.social-link-footer:hover::before {
    opacity: 1;
}

.social-link-footer i {
    color: #b0b0b0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-link-footer:hover i {
    color: #4caf50;
}

.copyright {
    font-size: 11px;
    color: #666666;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.copyright-note {
    color: #4caf50;
    font-size: 10px;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    background: #0a0a0a;
}

.content-wrapper {
    max-width: 100%;
    padding: 32px 40px;
}

.content-section {
    display: none;
}

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

.content-header {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.content-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.content-stat {
    font-size: 13px;
    color: #888888;
    font-weight: 400;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.source-card {
    background: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.source-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.source-card:hover {
    border-color: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.source-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.card-icon i {
    color: #4caf50;
    font-size: 18px;
}

.card-title {
    flex: 1;
}

.card-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.card-subtitle {
    font-size: 11px;
    color: #888888;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.donate-safety-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.divider {
    color: #666666;
    font-size: 11px;
}

.link-text {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link-text:hover {
    color: #66bb6a;
}

.card-pros-cons {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.pros-cons-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.pros-cons-header i {
    color: #4caf50;
    font-size: 14px;
}

.pros-cons-header h4 {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.pros-cons-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pros-section, .cons-section {
    display: flex;
    flex-direction: column;
}

.pros-title, .cons-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    font-weight: 600;
}

.pros-title {
    color: #4caf50;
}

.pros-title i {
    font-size: 12px;
}

.cons-title {
    color: #f44336;
}

.cons-title i {
    font-size: 12px;
}

.pros-list, .cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-list li, .cons-list li {
    font-size: 12px;
    color: #b0b0b0;
    line-height: 1.4;
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
    word-break: break-word;
    overflow-wrap: break-word;
}

.pros-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.cons-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #f44336;
    font-weight: bold;
}

.pros-list li strong, .cons-list li strong {
    color: #ffffff;
    font-weight: 600;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid #1a1a1a;
    position: relative;
    z-index: 1;
    gap: 16px;
}

.source-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-trusted {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.status-verified {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.status-risk {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.games-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #888888;
    font-weight: 500;
    margin-left: auto;
}

.games-count i {
    font-size: 11px;
    color: #4caf50;
}

.stars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.star {
    color: #ffb300;
    font-size: 12px;
}

.card-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    flex: 1;
}

.btn-primary {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
    width: 100%;
}

.btn-primary:hover {
    background: rgba(76, 175, 80, 0.25);
    border-color: rgba(76, 175, 80, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-guide, .btn-utility {
    flex: 1;
    min-width: 140px;
}

.guide-card, .utility-card {
    background: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.guide-card::before, .utility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.guide-card:hover, .utility-card:hover {
    border-color: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.guide-card:hover::before, .utility-card:hover::before {
    opacity: 1;
}

.guide-card .card-description,
.utility-card .card-description {
    font-size: 13px;
    color: #b0b0b0;
    line-height: 1.5;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.filters-sidebar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateX(0);
}

.filters-sidebar.hidden {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

.filters-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.search-container {
    margin-bottom: 24px;
}

.search-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

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

.search-input:focus {
    outline: none;
    border-color: #4caf50;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.filters-content {
    flex: 1;
}

.filter-section {
    margin-bottom: 28px;
}

.filter-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #b0b0b0;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-family: inherit;
    position: relative;
}

.filter-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.1), transparent);
    opacity: 0;
    border-radius: 6px;
    transition: opacity 0.2s ease;
    z-index: 0;
}

.filter-option:hover::before {
    opacity: 1;
}

.filter-option:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.filter-option.active {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.filter-option.active::before {
    opacity: 1;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.15), transparent);
}

.option-bullet {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.6;
    z-index: 1;
}

.filter-option.active .option-bullet {
    opacity: 1;
}

.option-text {
    flex: 1;
    z-index: 1;
}

.filters-footer {
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
}

.reset-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #b0b0b0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.reset-filters:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #4caf50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-state p {
    color: #888888;
    font-size: 13px;
}

.no-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    background: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
}

.no-results i {
    font-size: 40px;
    color: #666666;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
}

.no-results p {
    color: #888888;
    font-size: 13px;
    max-width: 300px;
}

#sources-section .sources-grid {
    max-height: none;
    overflow-y: visible;
}

#sources-section .pros-list,
#sources-section .cons-list {
    max-height: none !important;
    overflow-y: visible !important;
}

#guides-section .sources-grid,
#utilities-section .sources-grid,
#dmca-section .sources-grid {
    max-height: none;
    overflow-y: visible;
}

.main-content {
    overflow-y: auto;
}

.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.no-scrollbar .sources-grid {
    max-height: none;
    overflow-y: visible;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.dmca-content {
    max-width: 100%;
    margin-bottom: 40px;
}

.dmca-card {
    background: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.dmca-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dmca-card h3 i {
    color: #4caf50;
}

.dmca-text p {
    font-size: 13px;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.legal-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
}

.legal-point {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-point i {
    color: #4caf50;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.legal-point h5 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.legal-point p {
    font-size: 13px;
    color: #b0b0b0;
    margin: 0;
    line-height: 1.5;
}

.notice-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    margin: 24px 0;
}

.notice-box i {
    color: #ffb300;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-box h5 {
    font-size: 14px;
    font-weight: 600;
    color: #ffb300;
    margin-bottom: 8px;
}

.notice-box p {
    color: #e0e0e0;
    margin: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1400px) {
    .sidebar {
        width: 260px;
    }
    
    .content-wrapper {
        padding: 24px 32px;
    }
    
    .sources-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 1200px) {
    .sidebar {
        width: 240px;
    }
    
    .sources-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

.sidebar-content::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}