
/* ============================================
   INNER PAGE STYLES - Article / Content Pages
   Matches Rich Byte Crypto v3 Theme
   ============================================ */

/* ===== PAGE HEADER ===== */
.fg-page-header {
    position: relative;
    overflow: hidden;
}

.fg-page-header-inner {
    position: relative;
    z-index: 2;
}

/* Breadcrumbs */
.fg-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.fg-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 6px;
}

.fg-breadcrumb-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.fg-breadcrumb-sep {
    color: var(--text-tertiary);
    font-size: 0.7rem;
    opacity: 0.5;
}

.fg-breadcrumb-current {
    color: var(--neon-cyan);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Page Title */
.fg-page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: color 0.6s ease;
}

.fg-title-line {
    width: 80px;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* ===== ARTICLE CARD ===== */
.fg-article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s ease;
    box-shadow: var(--shadow-card);
}

.fg-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0.6;
}

.fg-article-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* Article Grid */
.fg-article-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

/* ===== ARTICLE IMAGE ===== */
.fg-article-image-wrap {
    position: relative;
}

.fg-article-image-inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.5s ease;
}

.fg-article-image-inner img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.fg-article-image-inner:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.fg-article-image-inner:hover img {
    transform: scale(1.03);
}

.fg-image-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fg-article-image-inner:hover .fg-image-glow {
    opacity: 1;
}

/* ===== ARTICLE BODY / CONTENT ===== */
.fg-article-body {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.fg-article-content {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1.05rem;
    transition: color 0.6s ease;
}

/* Style the injected HTML content */
.fg-article-content h1,
.fg-article-content h2,
.fg-article-content h3,
.fg-article-content h4,
.fg-article-content h5,
.fg-article-content h6 {
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
    transition: color 0.6s ease;
}

.fg-article-content h2 {
    font-size: 1.8rem;
    letter-spacing: -1px;
    position: relative;
    padding-bottom: 12px;
}

.fg-article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.fg-article-content h3 {
    font-size: 1.4rem;
    color: var(--neon-cyan);
}

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

.fg-article-content p:last-child {
    margin-bottom: 0;
}

.fg-article-content a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed rgba(0, 240, 255, 0.3);
    transition: all 0.3s ease;
}

.fg-article-content a:hover {
    border-bottom-style: solid;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

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

.fg-article-content li {
    margin-bottom: 10px;
    position: relative;
}

.fg-article-content ul li::marker {
    color: var(--neon-cyan);
}

.fg-article-content blockquote {
    background: var(--bg-input);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-secondary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
    transition: all 0.6s ease;
}

.fg-article-content blockquote p:last-child {
    margin-bottom: 0;
}

.fg-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin: 20px 0;
    transition: all 0.5s ease;
}

.fg-article-content img:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.fg-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.fg-article-content th {
    background: var(--bg-input);
    color: var(--neon-cyan);
    font-weight: 600;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.6s ease;
}

.fg-article-content td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    transition: all 0.6s ease;
}

.fg-article-content tr:last-child td {
    border-bottom: none;
}

.fg-article-content tr:hover td {
    background: var(--bg-input);
}

.fg-article-content strong,
.fg-article-content b {
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.6s ease;
}

.fg-article-content code {
    background: var(--bg-input);
    color: var(--neon-pink);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: 'Space Grotesk', monospace;
    border: 1px solid var(--border-light);
}

.fg-article-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.fg-article-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-secondary);
}

/* ===== ARTICLE ACTIONS ===== */
.fg-article-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    transition: border-color 0.6s ease;
}

.fg-action-label {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 4px;
    transition: color 0.6s ease;
}

.fg-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.fg-action-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.1);
}

/* ===== EMPTY STATE ===== */
.fg-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.fg-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--text-tertiary);
    transition: all 0.5s ease;
}

.fg-empty-state:hover .fg-empty-icon {
    border-color: var(--border-glow);
    color: var(--neon-cyan);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.fg-empty-state h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: color 0.6s ease;
}

.fg-empty-state p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    transition: color 0.6s ease;
}

/* ===== CTA SECTION (reuses existing .fg-cta-section) ===== */
.fg-cta-section {
    position: relative;
    padding: 80px 32px;
    overflow: hidden;
}

.fg-cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    opacity: 0.06;
    pointer-events: none;
}

.fg-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.fg-cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    transition: color 0.6s ease;
}

.fg-cta-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.7;
    transition: color 0.6s ease;
}

/* Button size variants */
.fg-btn-primary.btn-lg,
.fg-btn-ghost.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .fg-article-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .fg-article-image-wrap {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .fg-page-title {
        font-size: 2.4rem;
    }

    .fg-article-card {
        padding: 28px;
    }

    .fg-cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .fg-page-title {
        font-size: 1.9rem;
        letter-spacing: -1px;
    }

    .fg-article-card {
        padding: 20px;
        border-radius: 20px;
    }

    .fg-article-content {
        font-size: 1rem;
    }

    .fg-article-content h2 {
        font-size: 1.5rem;
    }

    .fg-article-content h3 {
        font-size: 1.2rem;
    }

    .fg-breadcrumbs {
        gap: 8px;
    }

    .fg-breadcrumb-link,
    .fg-breadcrumb-current {
        font-size: 0.8rem;
    }

    .fg-cta-title {
        font-size: 1.8rem;
    }

    .fg-hero-btns {
        flex-direction: column;
    }

    .fg-btn-primary.btn-lg,
    .fg-btn-ghost.btn-lg {
        width: 100%;
        justify-content: center;
    }

    .fg-article-actions {
        flex-wrap: wrap;
    }
}


/* ============================================
   GALLERY PAGE STYLES
   ============================================ */

.fg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fg-gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fg-gallery-item:nth-child(3n+1) {
    transform: translateY(0);
}

.fg-gallery-item:nth-child(3n+2) {
    transform: translateY(20px);
}

.fg-gallery-item:nth-child(3n+3) {
    transform: translateY(40px);
}

.fg-gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 2;
}

.fg-gallery-link {
    display: block;
    text-decoration: none;
    cursor: zoom-in;
}

.fg-gallery-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.5s ease;
}

.fg-gallery-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fg-gallery-item:hover .fg-gallery-image-wrap {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.fg-gallery-item:hover .fg-gallery-image-wrap img {
    transform: scale(1.1);
}

/* Overlay */
.fg-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: all 0.4s ease;
}

.fg-gallery-item:hover .fg-gallery-overlay {
    opacity: 1;
}

.fg-gallery-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 12px;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.fg-gallery-item:hover .fg-gallery-icon {
    transform: scale(1);
}

.fg-gallery-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
    opacity: 0;
}

.fg-gallery-item:hover .fg-gallery-title {
    transform: translateY(0);
    opacity: 1;
}

/* Glow effect behind image */
.fg-gallery-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.fg-gallery-item:hover .fg-gallery-glow {
    opacity: 1;
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.fg-contact-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: color 0.6s ease;
}

.fg-contact-section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
    transition: color 0.6s ease;
}

.fg-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

.fg-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fg-contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fg-contact-card:hover {
    border-color: var(--border-glow);
    transform: translateX(8px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.fg-contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
}

.fg-contact-card:hover .fg-contact-icon {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.fg-contact-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    transition: color 0.6s ease;
}

.fg-contact-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    transition: color 0.6s ease;
}

/* Social Links in Contact */
.fg-contact-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    transition: border-color 0.6s ease;
}

.fg-contact-social-label {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 4px;
    transition: color 0.6s ease;
}

.fg-contact-social-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.fg-contact-social-link:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.1);
}

/* Contact Form Card */
.fg-contact-form-wrap {
    position: sticky;
    top: 90px;
}

.fg-contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: 40px;
    transition: all 0.6s ease;
    box-shadow: var(--shadow-card);
}

.fg-contact-form-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.fg-contact-form-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.6s ease;
}

.fg-contact-form-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.6;
    transition: color 0.6s ease;
}

/* Input Styles */
.fg-input-wrap {
    position: relative;
}

.fg-input-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    transition: color 0.6s ease;
}

.fg-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-medium);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.4s ease;
}

.fg-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    background: var(--bg-input);
}

.fg-input::placeholder {
    color: var(--text-tertiary);
}

textarea.fg-input {
    resize: vertical;
    min-height: 120px;
}

/* Map Card */
.fg-map-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: 20px;
    transition: all 0.6s ease;
    box-shadow: var(--shadow-card);
}

.fg-map-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.fg-map-inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.fg-map-inner iframe {
    display: block;
    width: 100%;
    border: none;
    border-radius: 20px;
}

.fg-map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, var(--bg-card) 100%);
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .fg-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .fg-gallery-item:nth-child(3n+1),
    .fg-gallery-item:nth-child(3n+2),
    .fg-gallery-item:nth-child(3n+3) {
        transform: translateY(0);
    }

    .fg-gallery-item:nth-child(2n+2) {
        transform: translateY(15px);
    }

    .fg-contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .fg-contact-form-wrap {
        position: relative;
        top: 0;
    }

    .fg-contact-form-card {
        padding: 28px;
    }
}

@media (max-width: 767px) {
    .fg-gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fg-gallery-item:nth-child(2n+2) {
        transform: translateY(0);
    }

    .fg-gallery-image-wrap {
        aspect-ratio: 16 / 10;
    }

    .fg-gallery-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
        padding: 16px;
    }

    .fg-gallery-icon {
        transform: scale(0.8);
        opacity: 0.9;
    }

    .fg-gallery-title {
        transform: translateY(0);
        opacity: 1;
        font-size: 0.9rem;
    }

    .fg-contact-form-card {
        padding: 24px 20px;
    }

    .fg-contact-card {
        padding: 18px;
    }

    .fg-map-card {
        padding: 12px;
    }

    .fg-map-inner iframe {
        height: 280px;
    }
}