/* assets/css/style.css */

:root {
    /* Main Branding Colors */
    --primary-color: #5B59EC;
    --accent-color: #E5322D;
    --primary-light: #818CF8;
    --primary-glow: rgba(91, 89, 236, 0.4);
    --secondary-color: #10b981;

    /* Neutral Palette */
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 70px -15px rgba(0, 0, 0, 0.2);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Outfit', sans-serif;
}

/* Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button,
input,
select {
    font-family: inherit;
}

/* -------------------------------------------------------------------------- */
/*                                HEADER                                    */
/* -------------------------------------------------------------------------- */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.brand span {
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -1px;
}

/* -------------------------------------------------------------------------- */
/*                                HERO & SEARCH                              */
/* -------------------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
    padding: 10rem 0 8rem;
    color: white;
    text-align: center;
    position: relative;
    border-bottom: 8px solid var(--accent-color);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.search-box {
    background: white;
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    display: flex;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: 0 0 0 5px rgba(91, 89, 236, 0.2);
    border: 2px solid var(--primary-color);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main) !important;
    /* CRITICAL FIX: Ensure text is dark */
    outline: none;
    font-size: 1.1rem;
    height: 50px;
}

.search-input::placeholder {
    color: #94a3b8;
}

/* -------------------------------------------------------------------------- */
/*                                CATEGORY CARDS                            */
/* -------------------------------------------------------------------------- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    /* Smaller cards */
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    border-bottom: 4px solid var(--primary-color);
    text-align: center;
    transition: var(--transition);
}

.category-card:nth-child(even) {
    border-bottom-color: var(--accent-color);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

.category-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: white;
}

/* -------------------------------------------------------------------------- */
/*                                COMPONENTS                                 */
/* -------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: #4a48d1;
    transform: scale(1.05);
}

.btn-accent {
    background: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background: #c22925;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* -------------------------------------------------------------------------- */
/*                                FOOTER                                     */
/* -------------------------------------------------------------------------- */
.main-footer {
    background: var(--dark-bg);
    color: #94a3b8;
    padding: 5rem 0 2rem;
    border-top: 5px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo span {
    color: white;
    font-weight: 900;
    font-size: 1.8rem;
}

.footer-title {
    color: white;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* -------------------------------------------------------------------------- */
/*                                LOGIN PAGE                                 */
/* -------------------------------------------------------------------------- */
.auth-container {
    max-width: 450px;
    margin: 8rem auto;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-top: 8px solid var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-main);
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Pricing */
.pricing-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    border-top: 6px solid var(--primary-color);
    text-align: center;
}

.pricing-card.featured {
    border-top-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.6s ease-out forwards;
}