/**
 * YouPosts Simple Layouts - Frontend CSS
 * Comprehensive styling for all 4 layout types with card variations
 */

/* ==========================================
   BASE LAYOUT WRAPPER
   ========================================== */

.youposts-simple-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================
   HERO SECTION (Featured Layouts)
   ========================================== */

.youposts-simple-hero {
    position: relative;
    margin-bottom: 30px;
    background: var(--youposts-card-bg, #fff);
    border-radius: var(--youposts-border-radius, 12px);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.youposts-simple-hero-player {
    position: relative;
    aspect-ratio: 16/9;
    width: 100%;
    background: #000;
    overflow: hidden;
    border-radius: 0; /* No rounded corners - parent wrapper handles top corners via overflow:hidden */
}

.youposts-simple-hero-player iframe {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.youposts-simple-hero-thumbnail,
.youposts-simple-hero-thumbnail img {
    border-radius: 0;
}

/* Hero Thumbnail (before video plays) */
.youposts-simple-hero-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.youposts-simple-hero-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Play Button - inherits from Player Settings via JS
 * The youposts-hero-swap.js applies custom styling from plugin settings
 * These are base styles that get overridden by JS with player settings
 */
.youposts-simple-hero-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Default dimensions - overridden by JS with player settings */
    width: 80px;
    height: 45px;
    /* Use plugin's primary color (falls back to green) */
    background: var(--youposts-primary, #8bc34a);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
    z-index: 2;
    opacity: 0.9;
}

.youposts-simple-hero-play:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.youposts-simple-hero-play:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

.youposts-simple-hero-play svg {
    margin-left: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Hero Info Area (integrated into card) */
.youposts-simple-hero-info {
    padding: 16px;
    background: var(--youposts-card-bg, #fff);
}

.youposts-simple-hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--youposts-text, #333);
}

.youposts-simple-hero-title a {
    color: inherit;
    text-decoration: none;
}

.youposts-simple-hero-title a:hover {
    color: #8bc34a;
}

/* ==========================================
   SCROLL ROW (Featured + Scroll)
   ========================================== */

.youposts-simple-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.youposts-simple-row::-webkit-scrollbar {
    height: 8px;
}

.youposts-simple-row::-webkit-scrollbar-track {
    background: transparent;
}

.youposts-simple-row::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.youposts-simple-row::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.youposts-simple-row .youposts-simple-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* ==========================================
   GRID LAYOUT
   ========================================== */

.youposts-simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ==========================================
   LIST LAYOUT
   ========================================== */

.youposts-simple-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.youposts-simple-list .youposts-simple-card {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.youposts-simple-list .youposts-simple-card-thumbnail {
    flex: 0 0 320px;
    aspect-ratio: 16/9;
}

.youposts-simple-list .youposts-simple-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ==========================================
   CARD BASE STYLES
   ========================================== */

.youposts-simple-card {
    position: relative;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.youposts-simple-card:hover {
    transform: translateY(-4px);
}

.youposts-simple-card.active {
    outline: 3px solid var(--youposts-primary, #8bc34a);
    outline-offset: -3px;
}

.youposts-simple-card-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
}

.youposts-simple-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youposts-simple-card:hover .youposts-simple-card-thumbnail img {
    transform: scale(1.05);
}

/* Card Play Button Overlay */
.youposts-simple-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s ease;
}

.youposts-simple-card:hover .youposts-simple-card-play {
    background: rgba(255, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.youposts-simple-card-play svg {
    color: #fff;
    margin-left: 2px;
}

.youposts-simple-card-content {
    position: relative;
}

.youposts-simple-card-title {
    margin: 0;
    line-height: 1.4;
    color: #333;
}

.youposts-simple-card-title a {
    color: inherit;
    text-decoration: none;
}

.youposts-simple-card-title a:hover {
    color: #8bc34a;
}

/* ==========================================
   CARD STYLE VARIATIONS - CORNERS
   ========================================== */

/* Rounded Corners */
.youposts-simple-card--rounded {
    border-radius: 12px;
}

.youposts-simple-card--rounded .youposts-simple-card-thumbnail {
    border-radius: 12px 12px 0 0;
}

.youposts-simple-card--rounded.youposts-simple-card--title-overlay .youposts-simple-card-thumbnail {
    border-radius: 12px;
}

/* Square Corners */
.youposts-simple-card--square {
    border-radius: 0;
}

.youposts-simple-card--square .youposts-simple-card-thumbnail {
    border-radius: 0;
}

/* ==========================================
   CARD STYLE VARIATIONS - TITLE POSITION
   ========================================== */

/* Title Below (default) */
.youposts-simple-card--title-below .youposts-simple-card-title {
    padding: 12px;
    font-size: 1rem;
    font-weight: 500;
}

/* Title Overlay */
.youposts-simple-card--title-overlay .youposts-simple-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 12px 12px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    z-index: 1;
}

.youposts-simple-card--title-overlay .youposts-simple-card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* ==========================================
   CARD STYLE VARIATIONS - SHADOW
   ========================================== */

.youposts-simple-card--shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.youposts-simple-card--shadow:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   LIST LAYOUT SPECIFIC STYLES
   ========================================== */

.youposts-simple-list-card {
    display: flex;
    gap: 16px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.youposts-simple-list-thumbnail {
    position: relative;
    flex: 0 0 320px;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
}

.youposts-simple-list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youposts-simple-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.youposts-simple-list-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.youposts-simple-list-title a {
    color: inherit;
    text-decoration: none;
}

.youposts-simple-list-title a:hover {
    color: #8bc34a;
}

.youposts-simple-list-meta {
    display: flex;
    gap: 12px;
    font-size: 0.875rem;
    color: #666;
}

.youposts-simple-list-excerpt {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

@media (max-width: 768px) {
    .youposts-simple-layout {
        padding: 15px;
    }

    .youposts-simple-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .youposts-simple-list .youposts-simple-card {
        flex-direction: column;
    }

    .youposts-simple-list .youposts-simple-card-thumbnail {
        flex: none;
        width: 100%;
    }

    .youposts-simple-list-thumbnail {
        flex: none;
        width: 100%;
    }

    .youposts-simple-row .youposts-simple-card {
        flex: 0 0 200px;
    }

    .youposts-simple-hero-title {
        font-size: 1.25rem;
    }

    .youposts-simple-hero-play {
        width: 60px;
        height: 60px;
    }

    .youposts-simple-hero-play svg {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .youposts-simple-layout {
        padding: 10px;
    }

    .youposts-simple-grid {
        grid-template-columns: 1fr;
    }

    .youposts-simple-row .youposts-simple-card {
        flex: 0 0 160px;
    }

    .youposts-simple-hero {
        margin-bottom: 20px;
    }

    .youposts-simple-hero-title {
        font-size: 1.1rem;
    }

    .youposts-simple-hero-info {
        padding: 12px;
    }

    .youposts-simple-hero-play {
        width: 50px;
        height: 50px;
    }

    .youposts-simple-hero-play svg {
        width: 28px;
        height: 28px;
    }

    .youposts-simple-card--title-below .youposts-simple-card-title,
    .youposts-simple-card--title-overlay .youposts-simple-card-title {
        font-size: 0.9rem;
        padding: 10px;
    }
}

/* ==========================================
   ADMIN STYLES (Layout Selection Cards)
   ========================================== */

.youposts-simple-layouts-wrap {
    max-width: 1200px;
}

.youposts-simple-layouts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.youposts-simple-layout-card {
    position: relative;
    border: 2px solid #dcdcdc;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.youposts-simple-layout-card:hover {
    border-color: #8bc34a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.youposts-simple-layout-card.selected {
    border-color: #8bc34a;
    background: #f8fff4;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.15);
}

.youposts-simple-layout-card h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d2327;
}

.youposts-simple-layout-card p {
    margin: 0 0 12px 0;
    color: #646970;
    font-size: 0.9rem;
    line-height: 1.5;
}

.youposts-simple-layout-preview {
    background: #f6f7f7;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youposts-simple-layout-preview svg {
    width: 100%;
    height: auto;
    max-width: 200px;
    display: block;
}

.youposts-simple-layout-checkmark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #8bc34a;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.youposts-simple-layout-card.selected .youposts-simple-layout-checkmark {
    display: flex;
}

.youposts-simple-layout-checkmark .dashicons {
    color: #fff;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Styling Controls Section */
.youposts-simple-control-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d2327;
    font-size: 14px;
}

.youposts-simple-radio-group,
.youposts-simple-checkbox-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.youposts-simple-radio,
.youposts-simple-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 16px;
    border: 2px solid #dcdcdc;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
    user-select: none;
}

.youposts-simple-radio:hover,
.youposts-simple-checkbox:hover {
    border-color: #8bc34a;
    background: #f8fff4;
}

.youposts-simple-radio input[type="radio"],
.youposts-simple-checkbox input[type="checkbox"] {
    margin: 0 8px 0 0;
    cursor: pointer;
}

.youposts-simple-radio input[type="radio"]:checked + span {
    font-weight: 600;
    color: #1d2327;
}

.youposts-simple-radio:has(input:checked),
.youposts-simple-checkbox:has(input:checked) {
    border-color: #8bc34a;
    background: #f8fff4;
}

.youposts-simple-radio span,
.youposts-simple-checkbox span {
    font-size: 14px;
    color: #50575e;
}

.youposts-simple-actions {
    margin-top: 20px;
    padding: 20px;
    text-align: right;
}

/* Admin layout preview responsiveness */
@media (max-width: 782px) {
    .youposts-simple-layouts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .youposts-simple-layout-card {
        padding: 15px;
    }

    .youposts-simple-layout-preview {
        padding: 15px;
    }

    .youposts-simple-radio-group,
    .youposts-simple-checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.youposts-simple-card:focus {
    outline: 3px solid #4a90e2;
    outline-offset: 2px;
}

.youposts-simple-card:focus:not(:focus-visible) {
    outline: none;
}

.youposts-simple-card:focus-visible {
    outline: 3px solid #4a90e2;
    outline-offset: 2px;
}

.youposts-simple-layout-card:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.youposts-simple-layout--loading {
    opacity: 0.6;
    pointer-events: none;
}

.youposts-simple-card--loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ==========================================
   DARK MODE SUPPORT (Optional)
   ========================================== */

@media (prefers-color-scheme: dark) {
    .youposts-simple-layout {
        color: #e0e0e0;
    }

    .youposts-simple-card {
        background: #2a2a2a;
    }

    .youposts-simple-card-title {
        color: #e0e0e0;
    }

    .youposts-simple-card--title-below .youposts-simple-card-title {
        color: #e0e0e0;
    }

    .youposts-simple-hero {
        background: #2a2a2a;
    }

    .youposts-simple-hero-info {
        background: #2a2a2a;
    }

    .youposts-simple-hero-title {
        color: #e0e0e0;
    }

    .youposts-simple-card-thumbnail {
        background: #1a1a1a;
    }

    .youposts-simple-card--shadow {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .youposts-simple-card--shadow:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    }

    .youposts-simple-layout-card {
        background: #2a2a2a;
        border-color: #444;
    }

    .youposts-simple-layout-card:hover {
        border-color: #8bc34a;
    }

    .youposts-simple-layout-card.selected {
        background: #1a2e1a;
    }

    .youposts-simple-layout-card h4 {
        color: #e0e0e0;
    }

    .youposts-simple-layout-card p {
        color: #aaa;
    }

    .youposts-simple-layout-preview {
        background: #1a1a1a;
    }
}

/* ==========================================
   WIZARD ADMIN STYLES
   ========================================== */

.youposts-wizard-wrap {
    max-width: 1000px;
}

.youposts-wizard-intro {
    font-size: 15px;
    color: #646970;
    margin-bottom: 24px;
}

/* Wizard Step Container */
.youposts-wizard-step {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.youposts-wizard-step--final {
    background: linear-gradient(135deg, #f8fff4 0%, #fff 100%);
    border-color: #8bc34a;
}

.youposts-wizard-step--reference {
    background: #f6f7f7;
    border-color: #dcdcdc;
}

/* Step Title */
.youposts-step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.youposts-step-number {
    background: #8bc34a;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.youposts-step-title .dashicons {
    color: #8bc34a;
    font-size: 28px;
    width: 28px;
    height: 28px;
}

/* Layout Cards Grid */
.youposts-layout-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.youposts-layout-card {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 2px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.youposts-layout-card:hover {
    border-color: #8bc34a;
    background: #f8fff4;
}

.youposts-layout-card.active {
    border-color: #8bc34a;
    background: #f8fff4;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.15);
}

.youposts-layout-card:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.youposts-layout-card-preview {
    flex: 0 0 120px;
    background: #f6f7f7;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youposts-layout-card-preview svg {
    width: 100%;
    height: auto;
}

.youposts-layout-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.youposts-layout-card-info h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.youposts-layout-card-info p {
    margin: 0;
    font-size: 13px;
    color: #646970;
    line-height: 1.4;
}

.youposts-layout-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #8bc34a;
    opacity: 0;
    transition: opacity 0.2s;
}

.youposts-layout-card.active .youposts-layout-card-check {
    opacity: 1;
}

.youposts-layout-card-check .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Options Row */
.youposts-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.youposts-option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.youposts-option-group > label {
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
}

.youposts-button-group {
    display: flex;
    gap: 4px;
}

.youposts-opt-btn {
    padding: 8px 16px;
    border: 1px solid #c3c4c7;
    background: #fff;
    color: #1d2327;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 4px;
}

.youposts-opt-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.youposts-opt-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.youposts-opt-btn:only-child {
    border-radius: 4px;
}

.youposts-opt-btn:not(:first-child) {
    margin-left: -1px;
}

.youposts-opt-btn:hover {
    background: #f6f7f7;
    border-color: #8bc34a;
    z-index: 1;
}

.youposts-opt-btn.active {
    background: #8bc34a;
    border-color: #8bc34a;
    color: #fff;
    z-index: 2;
}

.youposts-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    min-width: 100px;
}

.youposts-select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Style Controls */
.youposts-style-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.youposts-style-section h4 {
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e4e7;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.youposts-style-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.youposts-style-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.youposts-style-control > label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 13px;
    color: #1d2327;
}

.youposts-style-control--wide {
    flex: 1;
    min-width: 200px;
}

.youposts-style-control--full {
    width: 100%;
}

.youposts-color-input {
    width: 100%;
    height: 36px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
}

.youposts-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.youposts-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

.youposts-range-input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e4e7;
    outline: none;
    -webkit-appearance: none;
}

.youposts-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2271b1;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.youposts-range-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2271b1;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.youposts-range-value {
    font-weight: 600;
    color: #2271b1;
    font-size: 12px;
}

.youposts-effect-btn {
    flex: 1;
    min-width: 70px;
    padding: 8px 12px;
    border: 2px solid #dcdcdc;
    border-radius: 4px;
    background: #fff;
    color: #1d2327;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.youposts-effect-btn:hover {
    border-color: #8bc34a;
    background: #f8fff4;
}

.youposts-effect-btn.active {
    border-color: #8bc34a;
    background: #8bc34a;
    color: #fff;
}

.youposts-style-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e2e4e7;
}

.youposts-save-status {
    font-size: 13px;
    font-weight: 500;
}

.youposts-save-status.success {
    color: #4caf50;
}

.youposts-save-status.error {
    color: #d32f2f;
}

/* Channel Buttons */
.youposts-channel-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.youposts-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    color: #1d2327;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.youposts-channel-btn:hover {
    border-color: #8bc34a;
    background: #f8fff4;
}

.youposts-channel-btn.active {
    border-color: #8bc34a;
    background: #8bc34a;
    color: #fff;
}

.youposts-channel-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.youposts-channel-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.youposts-channel-notice {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fff8e5;
    border: 1px solid #ffcc00;
    border-radius: 4px;
    font-size: 13px;
    color: #614700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.youposts-channel-notice .dashicons {
    color: #996800;
}

/* Preview Container */
.youposts-preview-container {
    background: #f6f7f7;
    border-radius: 8px;
    padding: 24px;
    min-height: 200px;
}

.youposts-preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #646970;
}

.youposts-preview-layout {
    max-width: 100%;
}

/* Shortcode Output */
.youposts-shortcode-output {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #c3c4c7;
}

.youposts-shortcode-output code {
    flex: 1;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 14px;
    color: #1d2327;
    word-break: break-all;
    background: transparent;
    padding: 0;
}

.youposts-shortcode-help {
    margin: 12px 0 0;
    font-size: 13px;
    color: #646970;
}

/* Copy Button */
.youposts-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.youposts-copy-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.youposts-copy-btn.copied {
    background: #8bc34a;
    border-color: #7cb342;
    color: #fff;
}

.youposts-copy-btn.copied .dashicons {
    color: #fff;
}

/* Channel ID in table */
.youposts-channel-id {
    font-size: 12px;
    background: #f6f7f7;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, monospace;
}

/* Table in reference section */
.youposts-wizard-step--reference .wp-list-table {
    border: none;
    margin: 0;
}

.youposts-wizard-step--reference .wp-list-table th,
.youposts-wizard-step--reference .wp-list-table td {
    padding: 12px 16px;
}

.youposts-wizard-step--reference .wp-list-table thead th {
    background: #fff;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 782px) {
    .youposts-wizard-step {
        padding: 16px;
    }

    .youposts-layout-cards {
        grid-template-columns: 1fr;
    }

    .youposts-layout-card {
        flex-direction: column;
    }

    .youposts-layout-card-preview {
        flex: none;
        width: 100%;
    }

    .youposts-options-row {
        flex-direction: column;
        gap: 16px;
    }

    .youposts-option-group {
        width: 100%;
    }

    .youposts-button-group {
        width: 100%;
    }

    .youposts-opt-btn {
        flex: 1;
        text-align: center;
    }

    .youposts-style-row {
        flex-direction: column;
    }

    .youposts-style-control--wide {
        min-width: 100%;
    }

    .youposts-channel-buttons {
        flex-direction: column;
    }

    .youposts-channel-btn {
        width: 100%;
        justify-content: center;
    }

    .youposts-shortcode-output {
        flex-direction: column;
        align-items: stretch;
    }

    .youposts-shortcode-output code {
        text-align: center;
        padding: 8px 0;
    }

    .youposts-style-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .youposts-preview-container {
        padding: 16px;
    }

    /* Preview responsive adjustments */
    .youposts-preview-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .youposts-preview-row > div {
        flex: 0 0 140px !important;
    }

    .youposts-preview-card--list {
        flex-direction: column !important;
    }

    .youposts-preview-card--list .youposts-preview-thumb {
        flex: none !important;
        width: 100% !important;
    }
}
