/* =====================================================
   crackeblxy - Strategic Investment Analysis Platform
   Professional Corporate Styling
   ===================================================== */

/* CSS Variables for Theme Colors */
:root {
    --primary-color: #1a3a5c;
    --secondary-color: #2c5f8d;
    --accent-color: #4a90c5;
    --text-dark: #1e1e1e;
    --text-light: #4a4a4a;
    --text-muted: #777;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e4e8;
    --success-color: #28a745;
    --hover-color: #0f2942;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--hover-color);
    padding: 8px 0;
    font-size: 0.875rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
    color: rgba(255,255,255,0.85);
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    color: var(--bg-white);
}

.logo-text h1 {
    font-size: 1.6rem;
    margin: 0;
    color: var(--bg-white);
    font-weight: 700;
}

.logo-text p {
    font-size: 0.8rem;
    margin: 0;
    color: rgba(255,255,255,0.8);
}

/* Navigation Menu */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    padding: 10px 18px;
    display: block;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::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 1200 120"><path d="M0,0V7.23C0,65.52,268.63,112.77,600,112.77S1200,65.52,1200,7.23V0Z" fill="rgba(255,255,255,0.05)"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--bg-white);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--bg-white);
    color: var(--primary-color);
    padding: 14px 35px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-light);
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.3rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: var(--bg-light);
}

.card-content {
    padding: 25px;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.card-title a {
    color: var(--primary-color);
}

.card-title a:hover {
    color: var(--accent-color);
}

.card-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Category Badge */
.category-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.category-card {
    background-color: var(--bg-light);
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    background-color: var(--bg-white);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Article Detail Page */
.article-header {
    background-color: var(--bg-light);
    padding: 50px 0;
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.article-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-weight: 600;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* Filter Bar */
.filter-bar {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.filter-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
}

.category-filter select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: var(--bg-white);
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    font-weight: 500;
}

.pagination a:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
    border-color: var(--accent-color);
}

.pagination .active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

/* Contact Form */
.contact-section {
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-box {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.contact-info-box h3 {
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-icon {
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.info-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 197, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 14px 40px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.85);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-links h4 {
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* About Page */
.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background-color: var(--bg-light);
    padding: 35px;
    border-radius: 8px;
    text-align: center;
}

.value-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 15px;
}

/* Thanks Page */
.thanks-message {
    text-align: center;
    padding: 80px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.thanks-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 25px;
}

.thanks-message h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.thanks-message p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Legal Pages */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    color: var(--bg-white);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.cookie-text p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--bg-white);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.cookie-btn-accept {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.cookie-btn-accept:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.cookie-btn-decline:hover {
    background-color: rgba(255,255,255,0.1);
}

.cookie-btn-settings {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.cookie-btn-settings:hover {
    background-color: var(--hover-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-top .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .filter-controls {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
