/* Cyberpunk Theme - AI Tool Review Platform */

:root {
    --bg-obsidian: #070A0F;
    --glass-bg: rgba(15, 23, 42, 0.75);
    --neon-cyan: #00f2ff;
    --neon-violet: #8b5cf6;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --border-glow: rgba(0, 242, 255, 0.2);
    --shadow-cyber: 0 0 30px rgba(0, 242, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-obsidian);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Glassmorphism Components */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    box-shadow: var(--shadow-cyber);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.15);
}

/* Navigation */
.navbar {
    background: rgba(7, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-decoration: none;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.logo span {
    color: var(--neon-violet);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--neon-cyan);
}

.nav-links a.active {
    color: var(--neon-cyan);
}

.nav-links a.btn-outline,
a.btn-outline,
.btn-outline {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 8px;
    color: #00f2ff !important;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-links a.btn-outline:hover,
a.btn-outline:hover,
.btn-outline:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.5);
    color: #00f2ff !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0.5rem;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 8px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 2px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(0, 242, 255, 0.1);
}

/* Tool Cards */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.tool-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 40px rgba(0, 242, 255, 0.1);
}

.tool-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.tool-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.tool-card .category {
    color: var(--neon-cyan);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-card .description {
    color: var(--text-secondary);
    margin: 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card .rating {
    color: #fbbf24;
    margin: 0.5rem 0;
}

.tool-card .price {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0.5rem 0;
}

/* Blog/Review Styles */
.review-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.review-content h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.review-content .meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.review-content h2 {
    color: var(--neon-cyan);
    margin: 2rem 0 1rem;
}

.review-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.25rem;
        padding: 0.5rem 0 0;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0.65rem 0.75rem;
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.5);
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .review-content h1 {
        font-size: 2rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn,
    .btn-group form {
        width: 100%;
    }

    .btn-group .btn {
        justify-content: center;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Site footer (partials/footer.php) */
.site-footer,
.footer {
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    gap: 1.25rem;
    text-align: center;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #64748b;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.footer-copy {
    margin: 0.5rem 0 0;
    color: #64748b;
}

/* Tool card bookmark control */
.tool-card {
    position: relative;
}

.bookmark-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 242, 255, 0.25);
    background: rgba(7, 10, 15, 0.85);
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    z-index: 2;
}

.bookmark-btn:hover {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.5);
}

.bookmark-btn.is-bookmarked {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.55);
}

.bookmark-btn.bookmark-error {
    border-color: #ef4444;
    color: #ef4444;
}

.bookmark-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}