/* Custom CSS for TikTok Audit Tool - Premium Dark Mode Redesign */

/*--------------------------------------------------------------
# General Styling & Variables
--------------------------------------------------------------*/
:root {
    /* Brand Colors - Neon & Vibrant */
    --tiktok-red: #ff0050;
    --tiktok-turq: #00f2ea;
    --primary-gradient: linear-gradient(135deg, #ff0050 0%, #d60043 100%);
    --secondary-gradient: linear-gradient(135deg, #00f2ea 0%, #00c2bb 100%);
    --accent-gradient: linear-gradient(135deg, #ff0050 0%, #00f2ea 100%);

    /* Dark Theme Backgrounds */
    --dark-bg: #0f172a;
    /* Deep Slate Blue/Black */
    --darker-bg: #020617;
    /* Almost Black */
    --card-bg: rgba(30, 41, 59, 0.7);
    /* Glassy Dark Blue */
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);

    /* Typography */
    --text-primary: #f8fafc;
    /* Off-white */
    --text-secondary: #94a3b8;
    /* Muted Blue-Grey */
    --text-muted: #64748b;
    --font-family-base: 'Outfit', 'Inter', sans-serif;
    /* Premium Font */

    /* Spacing & Borders */
    --border-radius-lg: 24px;
}

/* Override Bootstrap Utilities for Dark Mode */
.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

:root {
    /* Spacing & Borders */
    --border-radius-md: 16px;
    --border-radius-sm: 8px;

    /* Shadows & Glows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --glow-primary: 0 0 20px rgba(255, 0, 80, 0.4);
    --glow-secondary: 0 0 20px rgba(0, 242, 234, 0.4);

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-family-base);
    color: var(--text-primary);
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 0, 80, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 234, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: var(--tiktok-turq);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 242, 234, 0.5);
}

/*--------------------------------------------------------------
# Premium Components
--------------------------------------------------------------*/

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: var(--transition-base);
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--glow-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: var(--transition-base);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 80, 0.6);
    color: white;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--tiktok-turq);
    color: var(--tiktok-turq);
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.1);
}

.btn-outline-primary:hover {
    background: var(--tiktok-turq);
    color: var(--darker-bg);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 242, 234, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-base);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
}

.card-body {
    padding: 2rem;
}

/* Inputs */
.form-control,
.form-select {
    border-radius: var(--border-radius-md);
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    transition: var(--transition-base);
    font-size: 1rem;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--tiktok-turq);
    box-shadow: 0 0 0 4px rgba(0, 242, 234, 0.15);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/
.professional-navbar {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: var(--transition-base);
}

.navbar-brand span {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 2rem;
    /* Enlarged from 1.75rem */
    background: linear-gradient(to right, #fff, #cbd5e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 50px;
    transition: var(--transition-base);
    margin: 0 2px;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.dropdown-menu {
    background: var(--darker-bg);
    border: var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
}

.dropdown-item {
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 10px 16px;
    transition: var(--transition-base);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateX(5px);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section-v2 {
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-section-v2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(255, 0, 80, 0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-section-v2 h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-section-v2 .lead {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------------------
# Tool Cards (v3)
--------------------------------------------------------------*/
.tool-card-v3 {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.tool-card-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.1), rgba(0, 242, 234, 0.1));
    opacity: 0;
    transition: var(--transition-base);
    z-index: -1;
}

.tool-card-v3:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.tool-card-v3:hover::before {
    opacity: 1;
}

.tool-card-v3-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 0, 80, 0.3));
    transition: var(--transition-base);
}

.tool-card-v3:hover .tool-card-v3-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(0, 242, 234, 0.5));
}

.tool-card-v3-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.tool-card-v3-text {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    flex-grow: 1;
    font-size: 1.05rem;
}

.tool-card-v3-link {
    font-weight: 700;
    color: var(--tiktok-turq);
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.tool-card-v3-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.tool-card-v3:hover .tool-card-v3-link i {
    transform: translateX(6px);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background: var(--darker-bg);
    color: var(--text-secondary);
    padding-top: 6rem;
    padding-bottom: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tiktok-red), var(--tiktok-turq), transparent);
    opacity: 0.5;
}

.site-footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.site-footer a {
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.site-footer a:hover {
    color: var(--tiktok-turq);
    padding-left: 8px;
    text-shadow: 0 0 10px rgba(0, 242, 234, 0.3);
}

.footer-links li {
    margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
.text-gradient-primary {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-glass {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-5px);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/*--------------------------------------------------------------
# List Groups (Results)
--------------------------------------------------------------*/
.list-group-item {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    margin-bottom: 10px;
    border-radius: var(--border-radius-sm) !important;
}

.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/*--------------------------------------------------------------
# Alerts
--------------------------------------------------------------*/
.alert-danger {
    background-color: rgba(255, 0, 80, 0.1);
    border-color: rgba(255, 0, 80, 0.3);
    color: #ff80a0;
}

.alert-info {
    background-color: rgba(0, 242, 234, 0.1);
    border-color: rgba(0, 242, 234, 0.3);
    color: #80fffc;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

/*--------------------------------------------------------------
# Layout Utilities
--------------------------------------------------------------*/
.page-spacer {
    padding-top: 160px;
}

/* Mobile Navigation Improvements */
@media (max-width: 991px) {
    .page-spacer {
        padding-top: 120px;
    }

    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1rem;
        border-radius: var(--border-radius-md);
        margin-top: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow-lg);
    }

    .professional-search-form {
        margin-top: 1rem;
        width: 100%;
    }

    .professional-search-form .input-group {
        width: 100%;
    }

    .nav-item {
        margin-bottom: 0.5rem;
    }

    .nav-link {
        padding-left: 1rem !important;
    }
}

/* Blog Article Styling */
article {
    color: var(--text-primary);
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
    color: white;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

article p,
article li {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

article strong,
article b {
    color: white;
}

/* Blog Card Styling */
.blog-card {
    background: var(--card-bg);
    border: var(--glass-border);
    backdrop-filter: blur(16px);
}

.blog-card .card-title {
    color: white;
    font-weight: 700;
}

.blog-card .card-text {
    color: var(--text-secondary);
}

.blog-card .card-footer {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card .text-muted {
    color: var(--text-muted) !important;
}

/*--------------------------------------------------------------
# AI Tool Results Styling
--------------------------------------------------------------*/
/* Force white text in results container for better visibility */
#results-container .list-group-item,
#results-container .text-secondary,
#results-container .text-muted,
#results-container p,
#results-container li,
#results-container h1,
#results-container h2,
#results-container h3,
#results-container h4,
#results-container h5,
#results-container h6 {
    color: #ffffff !important;
}

/* Ensure links in results are still visible/distinct if needed, or keep them white */
#results-container a {
    color: var(--tiktok-turq) !important;
}

#results-container a:hover {
    color: #ffffff !important;
}