/* Enhanced Styles for TheGunDock.com - Typography, Layout & SEO Optimization */

/* Base Typography Improvements */
body, html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improved Text Sizing Hierarchy */
h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; font-weight: 600; line-height: 1.3; margin-bottom: 1.25rem; }
h3 { font-size: 1.75rem; font-weight: 600; line-height: 1.4; margin-bottom: 1rem; }
h4 { font-size: 1.5rem; font-weight: 500; line-height: 1.4; margin-bottom: 0.875rem; }
h5 { font-size: 1.25rem; font-weight: 500; line-height: 1.5; margin-bottom: 0.75rem; }
h6 { font-size: 1.125rem; font-weight: 500; line-height: 1.5; margin-bottom: 0.625rem; }

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #444;
}

/* Enhanced Footer Styles */
.footer-navbar {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-size: 0.875rem;
    line-height: 1.6;
    border-top: 3px solid #275293;
    position: relative;
}

.footer-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #275293, transparent);
}

.footer-navbar .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-navbar .row {
    align-items: flex-start;
}

.footer-navbar .col-12 {
    margin-bottom: 2rem;
}

/* Footer Logo Section */
.footer-navbar .logo {
    display: block;
    margin: 0 auto 1.5rem;
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.footer-navbar .text-center p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 1.5rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* Social Icons Enhancement */
.footer-navbar .social-icons {
    margin-top: 1.5rem;
    text-align: center;
}

.footer-navbar .social-icons a {
    display: inline-block;
    margin: 0 0.5rem;
    width: 42px;
    height: 42px;
    line-height: 42px;
    background: #275293;
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(39, 82, 147, 0.3);
}

.footer-navbar .social-icons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 82, 147, 0.4);
}

.footer-navbar .social-icons a.icon-facebook:hover { background: #1877f2; }
.footer-navbar .social-icons a.icon-twitter:hover { background: #1da1f2; }
.footer-navbar .social-icons a.icon-youtube:hover { background: #ff0000; }

/* Footer Links Sections */
.footer-navbar .links {
    padding: 0 1rem;
}

.footer-navbar .links h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #275293;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-navbar .links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #a51513;
}

.footer-navbar .links a,
.footer-navbar .links span {
    display: block;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #555;
    padding: 0.2rem 0;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 1rem;
}

.footer-navbar .links a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #a51513;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-navbar .links a:hover {
    color: #275293;
    padding-left: 1.25rem;
}

.footer-navbar .links a:hover::before {
    opacity: 1;
}

.footer-navbar .links span {
    color: #666;
    font-style: italic;
}

.footer-navbar .links i {
    margin-right: 0.5rem;
    color: #a51513;
    width: 16px;
}

/* Payment Icons */
.footer-navbar .icon-card {
    font-size: 2.25rem;
    color: #275293;
    margin: 0 0.5rem;
    transition: transform 0.2s ease;
}

.footer-navbar .icon-card:hover {
    transform: scale(1.1);
    color: #a51513;
}

/* Enhanced Copyright Bar */
.footer-copyrightbar {
    padding: 1.5rem 0;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #275293 0%, #1e4077 100%);
    font-size: 0.8rem;
    font-weight: 400;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyrightbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: #a51513;
}

/* Responsive Typography */
@media (max-width: 1200px) {
    html { font-size: 15px; }
}

@media (max-width: 992px) {
    .footer-navbar { padding: 2.5rem 0 1.5rem; }
    .footer-navbar .links h4 { margin-top: 2rem; margin-bottom: 1rem; }
    .footer-navbar .col-12 { margin-bottom: 1.5rem; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    .footer-navbar { padding: 2rem 0 1rem; }
    .footer-navbar .container-fluid { padding: 0 1rem; }
    .footer-navbar .links { padding: 0 0.5rem; }
    .footer-navbar .links h4 { margin-top: 1.5rem; }
}

@media (max-width: 576px) {
    .footer-navbar .links a,
    .footer-navbar .links span {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .footer-navbar .social-icons a {
        width: 38px;
        height: 38px;
        line-height: 38px;
        margin: 0 0.25rem;
    }
}

/* SEO-Friendly Structured Data Styling */
.footer-business-info {
    display: none; /* Hidden but readable by search engines */
}

/* Accessibility Improvements */
.footer-navbar a:focus,
.footer-navbar button:focus {
    outline: 2px solid #a51513;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Enhanced Header Improvements */
.header-topbar {
    padding: 0.75rem 0;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #275293 0%, #1e4077 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-logobar {
    padding: 1rem 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-logobar .logo {
    max-height: 55px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.header-statsbar {
    padding: 1rem 0;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #a51513 0%, #8a1310 100%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Content Spacing Improvements */
.site-main {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* Button Enhancements */
.button, .btn {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button:hover, .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Form Improvements */
input, textarea, select {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #275293;
    box-shadow: 0 0 0 3px rgba(39, 82, 147, 0.1);
    outline: none;
}

/* Cookie Notice Styles */
.tgd-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #275293 0%, #1e4077 100%);
    color: #fff;
    padding: 1rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.tgd-cookie-notice.show {
    transform: translateY(0);
}

.tgd-cookie-notice.hide {
    transform: translateY(100%);
}

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

.cookie-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 250px;
}

.cookie-text i {
    font-size: 1.5rem;
    color: #a51513;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-actions button,
.cookie-actions .btn-learn-more {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-accept {
    background: #28a745;
    color: #fff;
}

.btn-accept:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-decline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-decline:hover {
    background: #fff;
    color: #275293;
}

.btn-learn-more {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
    display: inline-block;
}

.btn-learn-more:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* Newsletter Popup Styles */
.tgd-newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tgd-newsletter-popup.show {
    opacity: 1;
    visibility: visible;
}

.tgd-newsletter-popup.hide {
    opacity: 0;
    visibility: hidden;
}

.newsletter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(2px);
}

.newsletter-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.newsletter-content {
    padding: 2rem;
    position: relative;
}

.newsletter-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.newsletter-close:hover {
    background: #f8f9fa;
    color: #a51513;
}

.newsletter-header {
    text-align: center;
    margin-bottom: 2rem;
}

.newsletter-header h3 {
    color: #275293;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.newsletter-header p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.newsletter-form .form-group {
    margin-bottom: 1rem;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #275293;
    box-shadow: 0 0 0 3px rgba(39, 82, 147, 0.1);
}

.btn-subscribe {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #a51513 0%, #8a1310 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-subscribe:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(165, 21, 19, 0.3);
}

.btn-subscribe:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-benefits {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    color: #555;
    line-height: 1.6;
    text-align: center;
}

.newsletter-footer {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive adjustments for cookie notice and newsletter */
@media (max-width: 768px) {
    .cookie-notice-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        justify-content: center;
    }

    .newsletter-content {
        padding: 1.5rem;
    }

    .newsletter-header h3 {
        font-size: 1.5rem;
    }

    .newsletter-modal {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
}

@media (max-width: 480px) {
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-actions button,
    .cookie-actions .btn-learn-more {
        width: 100%;
        text-align: center;
    }

    .newsletter-content {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .header-topbar,
    .header-statsbar,
    .footer-navbar .social-icons,
    .skip-link,
    .tgd-cookie-notice,
    .tgd-newsletter-popup {
        display: none !important;
    }

    .footer-navbar {
        background: none !important;
        color: #000 !important;
    }

    .footer-navbar a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}