/* SEO Pages Shared Styles - Premium Design */

/* SEO Pages - Clean sticky implementation */

.seo-wrapper {
    min-height: 100vh;
    background: var(--dark);
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.seo-header {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    margin: 0;
}

.seo-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.seo-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--blue);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.seo-logo:hover {
    color: var(--blue-light);
    transform: translateX(-2px);
}

.seo-nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Hamburger Menu Button */
.seo-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 201;
    position: relative;
}

.seo-hamburger span {
    width: 100%;
    height: 3px;
    background: var(--blue);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.seo-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.seo-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.seo-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.seo-nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.seo-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.3s ease;
}

.seo-nav-link:hover {
    color: var(--blue);
}

.seo-nav-link:hover::after {
    width: 100%;
}

.seo-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px 100px;
    display: flex;
    gap: 60px;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    position: relative;
    overflow-x: hidden;
}

.seo-content {
    flex: 1;
    min-width: 0;
    max-width: 900px;
    color: var(--text-light);
    line-height: 1.8;
    position: relative;
    z-index: 1;
    overflow: visible;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Social Sidebar - Will be controlled by JavaScript */
.social-sidebar {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    padding-right: 5px;
    /* Position will be set by JavaScript */
}

.social-sidebar::-webkit-scrollbar {
    width: 6px;
}

.social-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.social-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
    border-radius: 3px;
}

.social-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.5);
}

.social-post {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 217, 255, 0.04) 100%);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 14px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-decoration: none;
    color: var(--text-light) !important;
    position: relative;
    overflow: visible;
    margin-bottom: 16px;
    flex-shrink: 0; /* Prevent posts from shrinking */
    width: 100%;
}

.social-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.08), transparent);
    transition: left 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.social-post:hover::before {
    left: 100%;
}

.social-post:hover {
    border-color: rgba(0, 217, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 217, 255, 0.25);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(0, 217, 255, 0.08) 100%);
}

.social-post-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.social-post-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.4);
    color: var(--dark);
    font-weight: 700;
}

.social-post-user-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.social-post-user-info strong {
    display: block;
    color: var(--text-light) !important;
    font-size: 0.95rem;
    margin-bottom: 6px;
    font-weight: 600;
    opacity: 1;
}

.social-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.social-post-meta span {
    color: var(--text-gray) !important;
    opacity: 1;
}

.social-post-engagement {
    color: var(--blue);
    font-weight: 700;
    font-size: 0.85rem;
}

.social-post-content {
    color: var(--text-light) !important;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    word-wrap: break-word;
    position: relative;
    z-index: 2;
    font-weight: 400;
    opacity: 1;
}

.social-post-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 217, 255, 0.15);
    position: relative;
    z-index: 1;
}

.social-post-link {
    color: var(--blue) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    opacity: 1;
}

.loading-posts {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.social-post:hover .social-post-link {
    color: var(--blue-light);
    transform: translateX(5px);
}

.social-stats-card {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.12) 0%, rgba(0, 217, 255, 0.05) 100%);
    border: 1px solid rgba(0, 217, 255, 0.3);
    position: relative;
    z-index: 1;
}

.stats-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.stats-header h3 {
    color: var(--blue);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 15px 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(0, 217, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.social-cta-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.12) 0%, rgba(0, 217, 255, 0.05) 100%);
    border: 1px solid rgba(0, 217, 255, 0.3);
    position: relative;
    z-index: 1;
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    line-height: 1;
}

.social-cta-card h3 {
    color: var(--blue);
    font-size: 1.3rem;
    margin: 0 0 12px 0;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.social-cta-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0 0 25px 0;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.social-post-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-post:hover .social-post-image {
    opacity: 1;
}

.seo-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--blue);
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.seo-content h2 {
    font-size: 2.2rem;
    margin-top: 50px;
    margin-bottom: 25px;
    color: var(--blue);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    padding-left: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.seo-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-light) 100%);
    border-radius: 2px;
}

.seo-content h3 {
    font-size: 1.6rem;
    margin-top: 35px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.seo-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-light);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

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

.seo-content li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-light);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.seo-content a {
    color: var(--blue);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.seo-content a:hover {
    color: var(--blue-light);
    border-bottom-color: var(--blue-light);
}

.highlight {
    color: var(--blue);
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 600;
    background: rgba(0, 217, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.cta-button {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--blue) !important;
    color: var(--blue);
    padding: 18px 32px;
    margin: 10px 8px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
    line-height: 1.4;
    min-height: 54px;
    box-sizing: border-box;
    white-space: nowrap;
    vertical-align: middle;
    /* Force all borders to be visible */
    border-top-width: 2px !important;
    border-right-width: 2px !important;
    border-bottom-width: 2px !important;
    border-left-width: 2px !important;
    border-style: solid !important;
    border-color: var(--blue) !important;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--blue);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 4px;
    box-sizing: border-box;
}

.cta-button span {
    position: relative;
    z-index: 2;
    display: inline-block;
    line-height: 1.4;
}

.cta-button:hover {
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.3);
    /* Ensure border stays visible on hover */
    border: 2px solid var(--blue) !important;
}

.cta-button:hover::before {
    width: 100%;
}

.cta-box {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.08) 0%, rgba(0, 217, 255, 0.03) 100%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    padding: 35px;
    margin: 40px 0;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: visible !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    /* Ensure buttons are not clipped */
    padding-bottom: 40px;
}

.button-group {
    overflow: visible !important;
    position: relative;
    z-index: 10;
    /* Add extra padding to ensure buttons are fully visible */
    padding: 15px 0 20px 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.cta-box:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 217, 255, 0.2);
    transform: translateY(-2px);
}

.cta-box h3 {
    margin-top: 0;
    color: var(--blue);
    font-size: 1.8rem;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    word-wrap: break-word;
}

.cta-box > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
    padding: 10px 0 15px 0;
    position: relative;
    z-index: 10;
}

.chart-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.chart-stat {
    text-align: center;
}

.chart-stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chart-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    font-family: 'Inter', sans-serif;
}

.chart-timeframe-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.timeframe-btn {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--blue);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.timeframe-btn:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--blue);
    transform: translateY(-2px);
}

.timeframe-btn.active {
    background: var(--blue);
    color: var(--dark);
    border-color: var(--blue);
    font-weight: 600;
}

.chart-wrapper {
    width: 100%;
    min-height: 300px;
    position: relative;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
}

.chart-info {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.chart-price-label {
    background: rgba(0, 0, 0, 0.6);
    color: var(--blue);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: var(--blue);
}

.chart-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 217, 255, 0.2);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.chart-loading p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

.chart-loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(0, 217, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.chart-loading-progress-bar {
    height: 100%;
    background: var(--blue);
    border-radius: 2px;
    transition: width 0.3s ease;
}

#chart-wrapper {
    width: 100%;
    min-height: 300px;
    position: relative;
}

#price-chart {
    width: 100%;
    height: 300px;
    display: block;
    max-width: 100%;
}

.social-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 25px 0;
}

.social-link-inline {
    color: var(--blue);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.social-link-inline:hover {
    background: var(--blue);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.quote-box {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%);
    border-left: 4px solid var(--blue);
    padding: 30px;
    margin: 40px 0;
    font-style: italic;
    font-size: 1.3rem;
    border-radius: 0 8px 8px 0;
    position: relative;
    color: var(--text-light);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.quote-box::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--blue);
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 0;
}

.back-link:hover {
    color: var(--blue-light);
    transform: translateX(-5px);
}

.seo-footer {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    padding: 40px 20px;
    margin-top: 80px;
    text-align: center;
    position: relative;
    z-index: 0;
    clear: both;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); /* Account for safe area on mobile */
}

.seo-footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.seo-footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

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

.seo-footer-link:hover {
    color: var(--blue);
}

.seo-footer-text {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-top: 20px;
}

.related-box {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(0, 217, 255, 0.02) 100%);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    overflow: visible;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.related-box h3 {
    margin-top: 0;
    color: var(--blue);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.related-box p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* FAQ Styles */
.faq-section {
    margin-top: 50px;
    margin-bottom: 40px;
}

.faq-section h2 {
    color: var(--blue);
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 217, 255, 0.2);
}

.faq-item {
    background: rgba(26, 26, 26, 0.4);
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

.faq-item h3 {
    color: var(--blue-light);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.faq-item p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

.faq-item ul,
.faq-item ol {
    margin: 15px 0;
    padding-left: 30px;
    color: var(--text-light);
}

.faq-item li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.faq-item code {
    background: rgba(0, 217, 255, 0.1);
    color: var(--blue-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    word-break: break-all;
}

.contract-display {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.contract-display code {
    background: transparent;
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-all;
    display: block;
}

.seo-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 217, 255, 0.05);
    border-left: 4px solid var(--blue);
    border-radius: 8px;
}

.seo-nav-link.active {
    color: var(--blue);
}

.seo-nav-link.active::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .seo-content-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .social-sidebar {
        display: none; /* Hide sidebar on mobile/tablet */
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .seo-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .seo-hamburger {
        display: flex;
    }
    
    .seo-nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 80px 30px 30px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        z-index: 200;
        overflow-y: auto;
    }
    
    .seo-nav-links.active {
        right: 0;
    }
    
    .seo-nav-link {
        width: 100%;
        padding: 18px 0;
        border-bottom: 1px solid rgba(0, 217, 255, 0.1);
        font-size: 1rem;
        text-align: left;
    }
    
    .seo-nav-link:last-child {
        border-bottom: none;
    }
    
    .seo-nav-link::after {
        display: none;
    }
    
    .seo-nav-link.active {
        color: var(--blue);
        font-weight: 600;
    }
    
    /* Overlay when menu is open */
    .seo-nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .seo-content-wrapper {
        padding: 30px 15px 150px; /* Extra bottom padding for mobile browser bars */
        padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); /* Account for safe area and browser bars */
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .seo-content {
        padding: 0;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .seo-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .seo-content h2 {
        font-size: 1.5rem;
        padding-left: 10px;
        margin-top: 30px;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .seo-content h2::before {
        width: 3px;
    }
    
    .seo-content h3 {
        font-size: 1.2rem;
        margin-top: 25px;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .seo-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .seo-content ul,
    .seo-content ol {
        padding-left: 20px;
        margin-bottom: 15px;
    }
    
    .seo-content li {
        margin-bottom: 10px;
        font-size: 0.95rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .cta-button {
        display: block;
        margin: 10px 0;
        width: 100%;
        white-space: normal;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .cta-box > div {
        flex-direction: column;
    }
    
    .cta-box {
        padding: 20px 15px;
        margin: 25px 0;
    }
    
    .chart-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
        margin: 20px 0;
    }
    
    .chart-stat-value {
        font-size: 1.2rem;
    }
    
    .chart-wrapper {
        padding: 10px;
        margin: 15px 0;
    }
    
    .chart-timeframe-selector {
        gap: 8px;
        margin: 15px 0;
    }
    
    .timeframe-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .quote-box {
        padding: 18px;
        font-size: 1rem;
        margin: 20px 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .seo-footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .faq-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .contract-display {
        padding: 12px;
        margin: 15px 0;
        font-size: 0.8rem;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .seo-content-wrapper {
        padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px)); /* Even more padding for smaller mobile screens */
    }
    
    .seo-content h1 {
        font-size: 1.8rem;
    }
    
    .seo-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-box h3 {
        font-size: 1.4rem;
    }
}

/* Test Components Styles */
.testimonials-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
}

.testimonial-item {
    background: rgba(26, 26, 26, 0.4);
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.1);
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.featured-by-section {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(0, 217, 255, 0.02) 100%);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
}

.featured-by-section h3 {
    color: var(--blue);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.featured-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.featured-item {
    text-align: center;
}

.featured-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
}

.featured-followers {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.featured-description {
    font-size: 0.85rem;
    color: var(--text-light);
}

.video-section {
    margin: 30px 0;
}

.video-section h3 {
    color: var(--blue);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.video-section p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.video-container {
    margin-top: 20px;
}

.community-stats-section {
    background: rgba(26, 26, 26, 0.4);
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0;
}

.community-stats-section h3 {
    color: var(--blue);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.philosophy-box {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(0, 217, 255, 0.02) 100%);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0;
}

.philosophy-box h3 {
    color: var(--blue);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.philosophy-box p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.philosophy-box p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-logos {
        flex-direction: column;
    }
    
    .testimonial-item {
        padding: 20px;
    }
    
    .featured-by-section,
    .community-stats-section,
    .philosophy-box {
        padding: 25px 20px;
    }
}

