// ==========================================================================
// PressZone Theme - About Page Styles
// ==========================================================================
// Entry point - compiles to about.css
// Uses Sass variables with body.dark-mode & nesting pattern.
// ==========================================================================

@import 'abstracts/variables';
@import 'abstracts/mixins';

// --------------------------------------------------------------------------
// About Hero
// --------------------------------------------------------------------------
.about-hero {
    background: linear-gradient(180deg, $light-bg-primary 0%, $light-bg-secondary 100%);

    body.dark-mode & {
        background: linear-gradient(180deg, $dark-bg-primary 0%, $dark-bg-secondary 100%);
    }

    @include rtl {
        text-align: right;

        .row {
            flex-direction: row-reverse;
        }
    }
}

.about-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: $light-text-muted;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border: 1px solid $light-border-color;
    border-radius: 50px;

    body.dark-mode & {
        color: $dark-text-muted;
        border-color: $dark-border-color;
    }
}

.about-title {
    color: $light-text-primary;
    line-height: 1.2;

    body.dark-mode & {
        color: $dark-text-primary;
    }
}

.about-hero-image {
    .laptop-mockup {
        background: linear-gradient(135deg, #1a1a2e, #16213e);
        border-radius: 1rem;
        padding: 1rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }

    .laptop-screen {
        background: #0d1117;
        border-radius: 0.5rem;
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }
}

.code-preview,
.terminal-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.code-header,
.terminal-header {
    display: flex;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #21262d;

    .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;

        &.red { background: #ff5f56; }
        &.yellow { background: #ffbd2e; }
        &.green { background: #27ca40; }
    }
}

.code-content,
.terminal-content {
    flex: 1;
    padding: 1rem;
    background: repeating-linear-gradient(
        180deg,
        transparent,
        transparent 24px,
        rgba(255, 255, 255, 0.03) 24px,
        rgba(255, 255, 255, 0.03) 25px
    );
}

// --------------------------------------------------------------------------
// About Trusted
// --------------------------------------------------------------------------
.about-trusted {
    border-top: 1px solid $light-border-color;
    border-bottom: 1px solid $light-border-color;

    body.dark-mode & {
        border-top-color: $dark-border-color;
        border-bottom-color: $dark-border-color;
    }
}

// --------------------------------------------------------------------------
// Feature Sections
// --------------------------------------------------------------------------
.about-feature {
    position: relative;

    @include rtl {
        .row {
            flex-direction: row-reverse;
        }

        .order-lg-1 {
            order: 2 !important;
        }

        .order-lg-2 {
            order: 1 !important;
        }
    }
}

.about-feature-alt {
    background: $light-bg-secondary;

    body.dark-mode & {
        background: $dark-bg-secondary;
    }
}

.feature-badge {
    font-size: 0.875rem;
    font-weight: 500;
    color: $color-primary;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;

    @include rtl {
        .me-2 {
            margin-right: 0 !important;
            margin-left: 0.5rem !important;
        }
    }
}

.feature-badge-green {
    color: $color-success;
    background: rgba($color-success, 0.1);
    border-color: rgba($color-success, 0.2);
}

.feature-badge-purple {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.feature-title {
    color: $light-text-primary;

    body.dark-mode & {
        color: $dark-text-primary;
    }
}

.feature-list li {
    color: $light-text-secondary;

    body.dark-mode & {
        color: $dark-text-secondary;
    }

    @include rtl {
        flex-direction: row-reverse;
    }
}

.feature-image-wrapper {
    position: relative;
}

.code-block-preview {
    background: $light-bg-card;
    border: 1px solid $light-border-color;
    border-radius: 1rem;
    height: 300px;
    overflow: hidden;

    body.dark-mode & {
        background: $dark-bg-card;
        border-color: $dark-border-color;
    }
}

.security-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1rem;
    height: 300px;
}

.security-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-radius: 2rem;
    font-size: 3rem;
    color: #fff;
}

// --------------------------------------------------------------------------
// About Catalog
// --------------------------------------------------------------------------
.about-catalog {
    background: $light-bg-secondary;

    body.dark-mode & {
        background: $dark-bg-secondary;
    }
}
