/**
 * VSTT Reviews Styles - Magazine Sidebar Edition
 * Layout: Left Black Bar (with vertical text) + Right Content Area
 * Style: Luxury, High-Contrast, Editorial
 *
 * @package VSTT_Layouts
 */

.vstt-reviews-wrapper {
    /* --- Design Tokens --- */
    --vstt-star-color: #CBAA5C;
    --vstt-border-light: rgba(0, 0, 0, 0.12);
    --vstt-border-focus: var(--vstt-text-main, #000);
    --vstt-sidebar-bg: #111;
    --vstt-sidebar-text: #fff;
    
    width: 100%;
    margin: 60px auto;
    font-family: inherit;
    color: var(--vstt-text-main, #333);
    background: transparent;
}

.vstt-reviews-wrapper * {
    box-sizing: border-box;
}

/* --- MAIN LAYOUT (Flexbox) --- */
.vstt-magazine-layout {
    display: flex;
    align-items: stretch;
    min-height: 400px;
    margin-bottom: 50px;
    position: relative;
}

/* --- LEFT SIDEBAR (Black Bar) --- */
.vstt-magazine-sidebar {
    width: 80px;
    background-color: var(--vstt-sidebar-bg);
    color: var(--vstt-sidebar-text);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.vstt-sidebar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    gap: 40px; /* Space between lines and text */
}

/* Vertical Text (Reads Bottom to Top) */
.vstt-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: inherit !important;
    font-size: 1.4em;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0;
    white-space: nowrap;
}

/* Decorative White Lines */
.vstt-decor-line {
    display: block;
    width: 1px;
    height: 80px;
    background: rgba(255,255,255,0.4);
    position: relative;
    flex-shrink: 0;
}

/* Dot at the end of the line */
.vstt-decor-line::after {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    left: -2px; /* Center dot on 1px line */
}

.vstt-decor-line.top::after { top: 0; }
.vstt-decor-line.bottom::after { bottom: 0; }


/* --- RIGHT CONTENT AREA --- */
.vstt-magazine-content {
    flex: 1;
    padding-left: 60px;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Fix flexbox text overflow issues */
}

/* --- REVIEWS LIST (Clean & Editorial) --- */
.vstt-review-list {
    margin-bottom: 80px;
}

.vstt-review-item {
    padding-bottom: 50px;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--vstt-border-light);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vstt-review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.vstt-star-rating {
    color: var(--vstt-star-color);
    font-size: 1.1em;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.vstt-review-title {
    font-size: 1.25em;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    text-align: left;
    letter-spacing: 0.05em;
    color: inherit;
}

.vstt-review-body {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 800px;
    text-align: left;
}

.vstt-review-body p {
    margin-bottom: 10px;
}

.vstt-review-meta {
    font-size: 0.85em;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.vstt-author { 
    color: var(--vstt-text-main); 
}


/* --- FORM SECTION (Minimalist / Newsletter Style) --- */
.vstt-review-form-container {
    max-width: 800px;
    border-top: 2px solid var(--vstt-text-main);
    padding-top: 50px;
}

.vstt-form-title {
    font-size: 1.4em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 40px 0;
    font-weight: 400;
    text-align: left;
    color: inherit;
}

.vstt-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 50px;
    margin-bottom: 40px;
    text-align: left;
}

.vstt-field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.vstt-field-group.vstt-full { 
    grid-column: 1 / -1; 
}

.vstt-field-group label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    opacity: 0.6;
    color: inherit;
}

/* Minimal Inputs (Underline Only) */
.vstt-field-group input,
.vstt-field-group select,
.vstt-field-group textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--vstt-border-light);
    background: transparent;
    border-radius: 0;
    font-family: inherit;
    font-size: 1.1em;
    color: var(--vstt-text-main);
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.vstt-field-group input:focus,
.vstt-field-group select:focus,
.vstt-field-group textarea:focus {
    outline: none;
    border-bottom-color: var(--vstt-border-focus);
}

/* Accessibility: Focus Visible */
.vstt-field-group input:focus-visible,
.vstt-field-group select:focus-visible,
.vstt-field-group textarea:focus-visible {
    background: rgba(0,0,0,0.02); /* Slight visual cue */
}

.vstt-btn-submit {
    display: inline-block;
    padding: 16px 45px;
    background: transparent;
    color: var(--vstt-text-main);
    border: 1px solid var(--vstt-text-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.vstt-btn-submit:hover {
    background: var(--vstt-text-main);
    color: #fff;
}

.vstt-btn-submit:focus-visible {
    outline: 2px solid var(--vstt-text-main);
    outline-offset: 2px;
}

.vstt-success-msg {
    margin-bottom: 30px;
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 4px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .vstt-magazine-layout {
        flex-direction: column;
    }

    /* Transform Sidebar to Horizontal Top Bar */
    .vstt-magazine-sidebar {
        width: 100%;
        padding: 25px 20px;
        flex-direction: row;
        justify-content: center;
    }

    .vstt-sidebar-inner {
        flex-direction: row;
        width: 100%;
        height: auto;
        gap: 20px;
    }

    .vstt-vertical-text {
        writing-mode: horizontal-tb; /* Reset to horizontal */
        transform: none;
        margin: 0;
        font-size: 1.1em;
    }

    /* Lines become horizontal */
    .vstt-decor-line {
        width: 40px;
        height: 1px; 
    }
    
    /* Reposition dots for horizontal lines */
    .vstt-decor-line.top::after { 
        left: 0; 
        top: -2px; 
    }
    .vstt-decor-line.bottom::after { 
        left: auto; 
        right: 0; 
        top: -2px; 
    }

    .vstt-magazine-content {
        padding-left: 0;
        margin-top: 40px;
    }

    .vstt-form-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .vstt-btn-submit {
        width: 100%;
        text-align: center;
    }
}