/* ================================================
   THIRA - Public Layout Master Styles
   ================================================ */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --info-color: #3b82f6;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ================================================
   HEADER / NAVBAR
   ================================================ */

.public-header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.public-header .navbar {
    padding: 1rem 0;
}

.public-header .logo {
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
    transition: transform 0.3s ease;
}

.public-header .logo:hover {
    transform: scale(1.05);
}

.public-header .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.public-header .nav-link:hover {
    color: var(--primary-color) !important;
}

.public-header .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.public-header .nav-link:not(.dropdown-toggle):hover::after {
    width: 80%;
}

.public-header .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.public-header .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.public-header .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.public-header .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* ================================================
   FOOTER
   ================================================ */

.public-footer {
    background: linear-gradient(180deg, var(--dark-card) 0%, var(--dark-bg) 100%);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.footer-text {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-support {
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-support:hover {
    box-shadow: 0 4px 12px rgba(255, 95, 109, 0.4);
    color: white;
}

.footer-divider {
    border-color: rgba(99, 102, 241, 0.1);
    margin: 2rem 0;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-link-small {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link-small:hover {
    color: var(--primary-color);
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 991px) {
    .public-header .navbar-nav {
        padding-top: 1rem;
    }
    
    .public-header .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .public-footer {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}
