/* SolveUps.com - Main Stylesheet */
:root {
    --primary-color: #FFA533;
    --black-color: #000000;
    --white-color: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --dark-bg: #1a1a1a;
    --dark-card: #2d2d2d;
    --dark-text: #e0e0e0;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Dark theme variables */
[data-theme="dark"] {
    --white-color: var(--dark-bg);
    --black-color: var(--dark-text);
    --gray-100: var(--dark-card);
    --gray-200: #404040;
    --gray-300: #505050;
    --gray-800: var(--dark-text);
    --gray-900: var(--dark-text);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--black-color);
    background-color: var(--white-color);
    transition: var(--transition);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff8c00);
    color: var(--white-color);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--black-color);
    color: var(--white-color);
}

.btn-dark:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 2rem;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--black-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--black-color);
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 165, 51, 0.1), rgba(255, 140, 0, 0.1));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23FFA533" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Services Section */
.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition);
    background: var(--white-color);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--white-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stars {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Tabs */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-button:hover {
    color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white-color);
    border-radius: 15px;
    padding: 2rem;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-600);
}

.modal-close:hover {
    color: var(--black-color);
}

/* Forms */
.form-control {
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    padding: 12px 15px;
    transition: var(--transition);
    background: var(--white-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 165, 51, 0.25);
    outline: none;
}

/* Footer */
.footer {
    background: var(--black-color);
    color: var(--white-color);
    padding: 3rem 0 1rem;
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Dark theme specific styles */
[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.95);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
}

[data-theme="dark"] .card {
    background: var(--dark-card);
    color: var(--dark-text);
}

[data-theme="dark"] .form-control {
    background: var(--dark-card);
    border-color: var(--gray-600);
    color: var(--dark-text);
}

[data-theme="dark"] .modal-content {
    background: var(--dark-card);
    color: var(--dark-text);
}

[data-theme="dark"] p {
    color: var(--gray-400);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 165, 51, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Blog Styles */
.blog-card {
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
    overflow: hidden;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card.featured {
    border: 2px solid var(--primary-color);
}

.blog-title a {
    color: var(--black-color);
    text-decoration: none;
    transition: var(--transition);
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.featured-badge {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.blog-excerpt {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-footer {
    margin-top: auto;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.blog-post-excerpt {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.blog-author-info {
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.blog-post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: var(--black-color);
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    color: var(--black-color);
}

.blog-post-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem 0;
    color: var(--black-color);
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.blog-post-content strong {
    font-weight: 600;
    color: var(--black-color);
}

.blog-tags {
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: 10px;
    margin-top: 2rem;
}

.tag-list {
    margin-top: 0.5rem;
}

.blog-share {
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: 10px;
    margin-top: 2rem;
}

.share-buttons {
    margin-top: 1rem;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--black-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-item {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
    text-decoration: none;
    color: var(--black-color);
    transition: var(--transition);
}

.category-item:hover {
    color: var(--primary-color);
    background: var(--gray-100);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 5px;
}

.category-item:last-child {
    border-bottom: none;
}

.recent-posts {
    list-style: none;
    padding: 0;
}

.recent-post-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.recent-post-title a {
    color: var(--black-color);
    text-decoration: none;
    transition: var(--transition);
}

.recent-post-title a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    margin-top: 1rem;
}

.blog-filters {
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.results-info {
    background: var(--gray-100);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.toc-list {
    max-height: 400px;
    overflow-y: auto;
}

.toc-list ul {
    list-style: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.toc-list a:hover {
    color: var(--primary-color);
}

.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.blog-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

/* Blog responsive design */
@media (max-width: 768px) {
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-excerpt {
        font-size: 1.1rem;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 3rem;
    }
    
    .blog-filters .row {
        flex-direction: column;
    }
    
    .blog-filters .col-md-8,
    .blog-filters .col-md-4 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .blog-post-title {
        font-size: 1.75rem;
    }
    
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
}

/* Dark theme blog styles */
[data-theme="dark"] .blog-card {
    background: var(--dark-card);
    color: var(--dark-text);
}

[data-theme="dark"] .blog-title a {
    color: var(--dark-text);
}

[data-theme="dark"] .blog-title a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .blog-post-content h2,
[data-theme="dark"] .blog-post-content h3,
[data-theme="dark"] .blog-post-content h4 {
    color: var(--dark-text);
}

[data-theme="dark"] .blog-post-content p,
[data-theme="dark"] .blog-post-content li {
    color: var(--gray-400);
}

[data-theme="dark"] .blog-post-content strong {
    color: var(--dark-text);
}

[data-theme="dark"] .sidebar-widget {
    background: var(--dark-card);
    color: var(--dark-text);
}

[data-theme="dark"] .widget-title {
    color: var(--dark-text);
}

[data-theme="dark"] .category-item {
    color: var(--dark-text);
}

[data-theme="dark"] .recent-post-title a {
    color: var(--dark-text);
}

[data-theme="dark"] .blog-filters {
    background: var(--dark-card);
    color: var(--dark-text);
}

[data-theme="dark"] .results-info {
    background: var(--gray-800);
    color: var(--dark-text);
}

[data-theme="dark"] .blog-author-info {
    background: var(--gray-800);
}

[data-theme="dark"] .blog-tags,
[data-theme="dark"] .blog-share {
    background: var(--gray-800);
}

/* Utility classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }

.mt-5 { margin-top: 3rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.rounded { border-radius: 10px !important; }
.rounded-lg { border-radius: 15px !important; }

.transition { transition: var(--transition) !important; }
