/*
Theme Name: My Career Hub
Theme URI: https://mycareerhub.website
Description: Custom dark theme for My Career Hub - AI-Powered Job Application Tracking
Version: 1.2.0
Author: My Career Hub
Text Domain: mycareerhub
*/

/* ========================================
   BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: #0f172a; color: white; margin: 0; overflow-x: hidden; }

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #1e293b; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ========================================
   GRADIENT TEXT
   ======================================== */
.gradient-text {
    background: linear-gradient(135deg, #14b8a6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   GLASS CARD
   ======================================== */
.glass-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 16px;
}

/* ========================================
   HERO GRADIENT ANIMATION
   ======================================== */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animated-gradient {
    background: linear-gradient(270deg, #14b8a6, #6366f1, #14b8a6, #6366f1);
    background-size: 300% 300%;
    animation: gradient-shift 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   FLOATING BLOBS
   ======================================== */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes float-slower {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.08); }
    66% { transform: translate(25px, -15px) scale(0.92); }
}
.blob-teal { animation: float-slow 12s ease-in-out infinite; }
.blob-indigo { animation: float-slower 15s ease-in-out infinite; }

/* ========================================
   REVEAL ANIMATION (CSS keyframes - no JS dependency)
   ======================================== */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes revealUpSmall {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal {
    animation: revealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reveal-stagger .reveal-child {
    animation: revealUpSmall 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reveal-stagger .reveal-child:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger .reveal-child:nth-child(2) { animation-delay: 0.1s; }
.reveal-stagger .reveal-child:nth-child(3) { animation-delay: 0.15s; }
.reveal-stagger .reveal-child:nth-child(4) { animation-delay: 0.2s; }
.reveal-stagger .reveal-child:nth-child(5) { animation-delay: 0.25s; }
.reveal-stagger .reveal-child:nth-child(6) { animation-delay: 0.3s; }

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    background-color: #14b8a6;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px 0 rgba(20, 184, 166, 0.25);
    display: inline-block;
    text-decoration: none;
}
.btn-primary:hover {
    background-color: #0d9488;
    box-shadow: 0 6px 20px 0 rgba(20, 184, 166, 0.4);
    transform: translateY(-1px);
    color: white;
}
.btn-outline {
    border: 1.5px solid rgba(51, 65, 85, 0.8);
    color: #94a3b8;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s ease;
    background: transparent;
    display: inline-block;
    text-decoration: none;
}
.btn-outline:hover {
    border-color: #14b8a6;
    color: #14b8a6;
    background: rgba(20, 184, 166, 0.05);
}

/* ========================================
   NAVBAR
   ======================================== */
.nav-glass {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.mobile-menu.open {
    max-height: 320px;
}

/* ========================================
   STEP CONNECTOR
   ======================================== */
.step-connector {
    position: absolute;
    top: 32px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: linear-gradient(90deg, #14b8a6, #6366f1);
    opacity: 0.35;
}

/* ========================================
   PULSE RING
   ======================================== */
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0; }
}
.icon-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(20, 184, 166, 0.15);
    animation: pulse-ring 3s ease-out infinite;
    pointer-events: none;
}

/* ========================================
   DASHBOARD MOCKUP
   ======================================== */
.mockup-glow {
    box-shadow: 0 0 60px rgba(20, 184, 166, 0.12), 0 0 120px rgba(99, 102, 241, 0.08);
}
.counter {
    display: inline-block;
}

/* ========================================
   BLOG CARD HOVER
   ======================================== */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.1);
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-answer.open {
    max-height: 500px;
}
.faq-chevron {
    transition: transform 0.3s ease;
}
.faq-chevron.rotated {
    transform: rotate(180deg);
}

/* ========================================
   FORM INPUTS
   ======================================== */
.form-input {
    background: #0f172a;
    border: 1px solid rgba(51, 65, 85, 1);
    border-radius: 8px;
    color: white;
    padding: 10px 14px;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.form-input::placeholder {
    color: #64748b;
}
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   FADE-UP ANIMATIONS (About page - CSS keyframes)
   ======================================== */
.fade-up {
    animation: revealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
.fade-up-delay-4 { animation-delay: 0.4s; }

/* ========================================
   DECORATIVE ORBS & GLOWS
   ======================================== */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    z-index: 0;
}
.glow-teal {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,184,166,0.12), transparent 70%);
    pointer-events: none;
    filter: blur(60px);
    z-index: 0;
}
.glow-indigo {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.1), transparent 70%);
    pointer-events: none;
    filter: blur(60px);
    z-index: 0;
}

/* ========================================
   FAQ ITEMS STYLING
   ======================================== */
.faq-item {
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.faq-question:hover {
    background: rgba(20, 184, 166, 0.03);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer p {
    padding: 0 24px 20px;
}

/* ========================================
   CONTACT PAGE EXTRAS
   ======================================== */
.error-msg {
    display: none;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 6px;
}
.info-card {
    transition: border-color 0.3s ease;
}
.info-card:hover {
    border-color: rgba(20, 184, 166, 0.3);
}
.gradient-border-top {
    position: relative;
}
.gradient-border-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #14b8a6, #6366f1);
    border-radius: 16px 16px 0 0;
}
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(20, 184, 166, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}
.toast.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Responsive contact grid */
@media (max-width: 860px) {
    #contactGrid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   WORDPRESS SPECIFIC - Override WP defaults
   ======================================== */
.wp-block-post-content {
    color: #94a3b8;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 16px 16px;
    pointer-events: none;
}
.cookie-consent-inner {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    animation: slideUpConsent 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes slideUpConsent {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-text {
    flex: 1;
    min-width: 260px;
}
.cookie-consent-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: white;
    margin-bottom: 6px;
}
.cookie-consent-text p {
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0 0 4px;
}
.cookie-consent-link {
    font-size: 12px;
    color: #2dd4bf;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-consent-link:hover {
    color: #14b8a6;
}
.cookie-consent-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}
.cookie-btn-accept {
    background: #14b8a6;
    color: white;
    box-shadow: 0 2px 10px rgba(20, 184, 166, 0.3);
}
.cookie-btn-accept:hover {
    background: #0d9488;
    transform: translateY(-1px);
}
.cookie-btn-reject {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(51, 65, 85, 0.8);
}
.cookie-btn-reject:hover {
    color: white;
    border-color: rgba(51, 65, 85, 1);
    background: rgba(51, 65, 85, 0.3);
}
@media (max-width: 520px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-consent-actions {
        justify-content: stretch;
    }
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}
