/**
 * Book Synopsis Block Styles [Author Pro]
 * Strictly isolated BEM classes with awt- namespace
 */

@use '../../../styles/variables' as *;
@use '../../../styles/mixins' as *;

.awt-synopsis {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: $awt-default-paper;
    border-top: 1px solid #f1f5f9;
    overflow: hidden;

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    &__glow {
        position: absolute;
        top: 0;
        right: 0;
        width: 16rem;
        height: 16rem;
        background-color: rgba(234, 88, 12, 0.05);
        border-radius: 9999px;
        filter: blur(48px);
        transform: translate(33.33%, -33.33%);
        pointer-events: none;
        z-index: 0;
    }

    &__container {
        @include awt-container-styles;
        position: relative;
        z-index: 1;
    }

    &__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;

        @include lg {
            grid-template-columns: 8fr 4fr;
            gap: 3rem;
        }
    }

    // Left Column: Synopsis Body
    &__content-col {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    &__header {
        margin-bottom: 0.5rem;
    }

    &__subtitle {
        display: block;
        font-family: $awt-font-sans;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.125em;
        color: $awt-default-accent;
        margin-bottom: 0.5rem;
    }

    &__title {
        font-family: $awt-font-serif;
        font-size: 1.875rem;
        font-weight: 700;
        color: $awt-default-primary;
        line-height: 1.25;
        margin: 0;

        @include lg {
            font-size: 2.25rem;
        }
    }

    &__content {
        font-family: $awt-font-sans;
        font-size: 1.125rem;
        line-height: 1.8;
        color: $awt-default-secondary;
    }

    &__text {
        p {
            margin: 0 0 1.5rem 0;

            &:last-child {
                margin-bottom: 0;
            }
        }
    }

    // Quote Box
    &__quote-wrap {
        background-color: #ffffff;
        padding: 2rem;
        border-radius: $awt-radius-2xl;
        border-left: 4px solid $awt-default-accent;
        box-shadow: $awt-shadow-sm;
    }

    &__quote-icon {
        width: 2.5rem;
        height: 2.5rem;
        color: rgba(234, 88, 12, 0.2);
        margin-bottom: 1rem;
        display: block;
    }

    &__quote {
        font-family: $awt-font-serif;
        font-size: 1.25rem;
        font-style: italic;
        color: $awt-default-primary;
        line-height: 1.6;
        margin: 0 0 1rem 0;
        padding: 0;
        background: transparent;
        border-left: 0;
    }

    &__quote-author {
        display: block;
        font-family: $awt-font-sans;
        font-size: 0.875rem;
        font-weight: 700;
        font-style: normal;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #94a3b8;
    }

    // Right Column: Sidebar Widgets
    &__sidebar {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    // Book Details Widget
    &__widget {
        background-color: #ffffff;
        padding: 1.5rem;
        border-radius: $awt-radius-xl;
        border: 1px solid #f1f5f9;
        box-shadow: $awt-shadow-sm;
    }

    &__widget-title {
        font-family: $awt-font-sans;
        font-size: 0.875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: $awt-default-primary;
        margin: 0 0 1.5rem 0;
        padding-bottom: 1rem;
        border-bottom: 1px solid #f1f5f9;
    }

    &__meta-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    &__meta-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.875rem;
        padding: 0.25rem 0;
    }

    &__meta-info {
        display: flex;
        align-items: center;
        color: #94a3b8;
    }

    &__meta-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1rem;
        height: 1rem;
        margin-right: 0.625rem;
        color: rgba(234, 88, 12, 0.7);

        svg {
            width: 100%;
            height: 100%;
            display: block;
        }
    }

    &__meta-label {
        font-family: $awt-font-sans;
        color: #94a3b8;
    }

    &__meta-value {
        font-family: $awt-font-sans;
        font-weight: 700;
        color: $awt-default-primary;
        text-align: right;

        a {
            color: $awt-default-primary;
            text-decoration: none;
            transition: color $awt-transition-fast;

            &:hover {
                color: $awt-default-accent;
            }
        }
    }

    // Author Card Widget
    &__author-card {
        background-color: #ffffff;
        padding: 1.5rem;
        border-radius: $awt-radius-xl;
        border: 1px solid #f1f5f9;
        box-shadow: $awt-shadow-sm;
        text-align: center;
    }

    &__author-avatar-wrap {
        width: 5rem;
        height: 5rem;
        margin: 0 auto 1rem auto;
        border-radius: 9999px;
        overflow: hidden;
        border: 2px solid #ffffff;
        box-shadow: $awt-shadow-lg;
    }

    &__author-avatar {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    &__author-name {
        font-family: $awt-font-sans;
        font-size: 1.125rem;
        font-weight: 700;
        color: $awt-default-primary;
        margin: 0 0 0.25rem 0;
    }

    &__author-role {
        font-family: $awt-font-sans;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: $awt-default-accent;
        margin: 0 0 1rem 0;
    }

    &__author-bio {
        font-family: $awt-font-sans;
        font-size: 0.875rem;
        line-height: 1.6;
        color: $awt-default-secondary;
        margin: 0 0 1.5rem 0;
    }

    &__author-btn {
        display: block;
        width: 100%;
        padding: 0.5rem 1rem;
        border: 1px solid #e2e8f0;
        border-radius: $awt-radius-md;
        font-family: $awt-font-sans;
        font-size: 0.875rem;
        font-weight: 700;
        color: $awt-default-primary;
        text-decoration: none;
        text-align: center;
        transition: all $awt-transition-normal;
        box-sizing: border-box;

        &:hover {
            border-color: $awt-default-accent;
            color: $awt-default-accent;
        }
    }
}