/* Quiz Of Mine - Modern Theme 2024 */
/* Main Brand Color: #eea11f (Amber/Gold) */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary: #eea11f;
    --primary-light: #f5b742;
    --primary-dark: #d48c0a;
    --primary-rgb: 238, 161, 31;
    
    --dark: #1e293b;
    --dark-deeper: #0f172a;
    --light: #f8fafc;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    
    --success: #22c55e;
    --warning: #eea11f;
    --danger: #ef4444;
    --info: #3b82f6;
}

/* Base Styles */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-50);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--dark);
    margin-top: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Navbar */
.navbar {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand img {
    height: 40px;
}

.navbar .nav-link {
    color: var(--gray-700) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-item.active .nav-link {
    color: var(--primary) !important;
    background: rgba(238, 161, 31, 0.1);
}

.navbar .nav-link i {
    color: var(--primary);
    margin-right: 0.375rem;
}

.navbar-toggler {
    border: 2px solid var(--primary) !important;
    padding: 0.5rem;
    border-radius: 8px !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23eea11f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid var(--gray-200) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
    padding: 0.5rem !important;
}

.dropdown-item {
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--primary) !important;
    color: var(--dark) !important;
}

/* Buttons */
.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px !important;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none !important;
    position: relative;
    z-index: 5;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(238, 161, 31, 0.4) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #eea11f 0%, #f5b742 100%) !important;
    color: var(--dark) !important;
    box-shadow: 0 4px 15px rgba(238, 161, 31, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d48c0a 0%, #eea11f 100%) !important;
    color: var(--dark) !important;
    box-shadow: 0 6px 20px rgba(238, 161, 31, 0.5);
}

.btn-secondary,
.btn-dark {
    background: var(--dark) !important;
    color: var(--white) !important;
}

.btn-secondary:hover,
.btn-dark:hover {
    background: var(--dark-deeper) !important;
    color: var(--white) !important;
}

.btn-light {
    background: var(--white) !important;
    color: var(--primary-dark) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-light:hover {
    background: var(--gray-100) !important;
    color: var(--primary-dark) !important;
}

.btn-outline-primary {
    background: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.active {
    background: var(--primary) !important;
    color: var(--dark) !important;
}

/* Tests Hero Category Buttons - Better visibility */
.tests-hero .btn-outline-primary {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid var(--dark) !important;
    color: var(--dark) !important;
}

.tests-hero .btn-outline-primary:hover {
    background: var(--dark) !important;
    color: var(--white) !important;
}

.btn-outline-light {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.6) !important;
    color: var(--white) !important;
}

.btn-outline-light:hover {
    background: var(--white) !important;
    color: var(--primary-dark) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #eea11f 0%, #f5b742 100%) !important;
    color: var(--dark) !important;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Cards */
.card {
    background: var(--white);
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-body {
    padding: 1.5rem;
}

/* Form Controls */
.form-control {
    border: 2px solid var(--gray-200) !important;
    border-radius: 12px !important;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(238, 161, 31, 0.2) !important;
}

.input-group-text {
    background: linear-gradient(135deg, #eea11f 0%, #f5b742 100%) !important;
    border: none !important;
    color: var(--dark);
    padding: 0.875rem 1rem;
    border-radius: 12px 0 0 12px !important;
}

/* Hero Section */
.home-section-1 {
    background: linear-gradient(135deg, rgba(238, 161, 31, 0.1) 0%, rgba(245, 183, 66, 0.05) 100%);
    min-height: 70vh;
    padding: 4rem 0;
    position: relative;
}

.home-section-1 h1 {
    font-size: 2.5rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .home-section-1 h1 {
        font-size: 1.75rem;
    }
    .home-section-1 {
        min-height: auto;
        padding: 2rem 0;
    }
}

.home-section-1 .lead {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* Feature Image Animation */
.feature-image {
    filter: drop-shadow(0 20px 40px rgba(238,161,31,0.2));
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Step Cards */
.step-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid var(--gray-100);
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(238,161,31,0.15);
    border-color: var(--primary);
}

.step-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.25rem;
    color: var(--dark);
}

.step-card p {
    color: var(--gray-600);
    margin-bottom: 0;
}

.step-card.primary {
    background: linear-gradient(135deg, #eea11f 0%, #f5b742 100%);
    border: none;
}

.step-card.primary i,
.step-card.primary h3,
.step-card.primary p {
    color: var(--dark);
}

/* Tests Section */
.tests-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.tests-section h2 {
    color: var(--white);
}

.test-category-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.test-category-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.test-category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: var(--white);
}

.test-category-icon.knowledge { background: linear-gradient(135deg, #eea11f, #f5b742); color: var(--dark); }
.test-category-icon.iq { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.test-category-icon.personality { background: linear-gradient(135deg, #ec4899, #f472b6); }
.test-category-icon.friend { background: linear-gradient(135deg, #22c55e, #4ade80); }

.test-category-card h3 {
    color: var(--white);
    font-size: 1.1rem;
}

.test-category-card p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Tests Hero */
.tests-hero {
    background: linear-gradient(135deg, #eea11f 0%, #f5b742 100%);
    padding: 3rem 0;
    text-align: center;
}

.tests-hero h1 {
    color: var(--dark);
}

.tests-hero p {
    color: var(--dark);
    opacity: 0.85;
}

/* Test List Card */
.test-list-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}

.test-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.test-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.test-badge.knowledge { background: rgba(238, 161, 31, 0.15); color: #d48c0a; }
.test-badge.iq { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }
.test-badge.personality { background: rgba(236, 72, 153, 0.15); color: #db2777; }

/* Ad Container */
.ad-container {
    background: var(--gray-100);
    border: 1px dashed var(--gray-300);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    min-height: 90px;
}

/* Tables */
.table thead {
    background: linear-gradient(135deg, #eea11f 0%, #f5b742 100%);
}

.table thead th {
    border: none !important;
    color: var(--dark);
    padding: 1rem;
    font-weight: 600;
}

.table tbody td {
    padding: 0.875rem 1rem;
    border-color: var(--gray-100);
}

/* Social Share Buttons */
.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: 12px !important;
    font-weight: 600;
    color: var(--white) !important;
    width: 100%;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: var(--white) !important;
}

.social-share-btn.facebook { background: #1877f2 !important; }
.social-share-btn.whatsapp { background: #25d366 !important; }
.social-share-btn.messenger { background: #0084ff !important; }
.social-share-btn.x-twitter { background: #000000 !important; }
.social-share-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; }
.social-share-btn.telegram { background: #0088cc !important; }

/* Progress Circle */
.progress {
    width: 150px;
    height: 150px;
    background: transparent;
    margin: 0 auto;
    box-shadow: none !important;
    position: relative;
    border-radius: 50%;
}

.progress::after {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid var(--gray-100);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    box-sizing: border-box;
}

.progress > span {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    z-index: 1;
}

.progress .progress-left { 
    left: 0; 
    border-radius: 150px 0 0 150px;
}

.progress .progress-right { 
    right: 0; 
    border-radius: 0 150px 150px 0;
}

.progress .progress-bar {
    width: 200%;
    height: 100%;
    background: none;
    border-width: 10px;
    border-style: solid;
    border-color: var(--primary);
    position: absolute;
    top: 0;
    box-sizing: border-box;
}

.progress .progress-left .progress-bar {
    border-right: none;
    border-radius: 150px 0 0 150px;
    transform-origin: 100% 50%;
    left: 0;
}

.progress .progress-right .progress-bar {
    border-left: none;
    border-radius: 0 150px 150px 0;
    transform-origin: 0% 50%;
    right: 0;
}

.progress .progress-value {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.progress .progress-value .h2 {
    font-size: 2rem;
    color: var(--primary);
    z-index: 11;
    position: relative;
}

/* Test Loading Screen */
#testLoading {
    position: relative;
    z-index: 1;
}

#testResults {
    position: relative;
    z-index: 2;
}

/* Answer Cards */
/* Shuffle Button - Spotify Style */
.shuffle-btn {
    border: 2px solid #eea11f !important;
    background: transparent !important;
    color: #eea11f !important;
    border-radius: 50px !important;
    padding: 8px 20px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.shuffle-btn:hover {
    background: rgba(238, 161, 31, 0.1) !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(238, 161, 31, 0.2);
}

.shuffle-btn:active {
    transform: scale(0.95);
}

.shuffle-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.shuffle-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.shuffle-btn:hover i {
    transform: rotate(180deg);
}

.answer-card {
    cursor: pointer;
    border: 2px solid var(--gray-200) !important;
    border-radius: 16px !important;
    transition: all 0.3s;
    min-height: 100px;
    background: var(--white);
}

.answer-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(238, 161, 31, 0.2);
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 3rem 0 0;
    margin-top: auto;
}

/* Ensure body takes full height */
html, body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.footer h5 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer p,
.footer li {
    color: var(--gray-400);
    font-size: 0.9rem;
}

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

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: var(--gray-400);
    transition: all 0.2s;
}

.footer ul li a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    margin-top: 2rem;
}

.footer-bottom p {
    color: var(--gray-500);
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.badge-primary,
.badge.bg-primary {
    background: linear-gradient(135deg, #eea11f 0%, #f5b742 100%) !important;
    color: var(--dark);
}

/* Alerts */
.alert {
    border: none !important;
    border-radius: 12px !important;
    padding: 1rem 1.25rem;
}

.alert-danger { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.alert-success { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.alert-warning { background: rgba(238, 161, 31, 0.15); color: #d48c0a; }
.alert-info { background: rgba(59, 130, 246, 0.1); color: #2563eb; }

/* Pagination */
.page-item .page-link {
    border: none !important;
    border-radius: 8px !important;
    padding: 0.5rem 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    margin: 0 2px;
}

.page-item:hover .page-link,
.page-item.active .page-link {
    background: var(--primary) !important;
    color: var(--dark) !important;
}

/* Sidebar */
.sidebar-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.sidebar-widget h4 {
    font-size: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 1rem;
    color: var(--dark);
}

/* Blog Cards */
.blog-card {
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

/* Statistics Section */
.bg-gradient-primary {
    background: linear-gradient(135deg, #eea11f 0%, #f5b742 100%) !important;
}

/* Text Gradient */
.text-gradient {
    color: var(--primary);
}

/* Cookie Consent - Fixed and visible */
#cookieConsent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: 400px;
    margin-left: auto;
    z-index: 99999;
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 3px solid var(--primary);
}

#cookieConsent .cookie-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

#cookieConsent h6 {
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

#cookieConsent p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

#cookieConsent .btn {
    width: 100%;
}

@media (max-width: 575.98px) {
    #cookieConsent {
        max-width: none;
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        border: 2px solid var(--primary);
    }
    
    .navbar .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 767.98px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .footer {
        text-align: center;
    }
    
    .footer h5 {
        margin-top: 1.5rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
