/* =============================================================================
   GoodStock Stories — v5
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; }

/* === CAROUSEL WRAP === */
.gs-carousel-wrap { width: 100%; }

.gs-carousel {
    position: relative;
    width: 100%;
    overflow: hidden !important;
    cursor: pointer;
}

.gs-carousel-track {
    display: flex !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: flex-start;
}

.gs-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
}

/* === CARD === */
.gs-slide-card {
    background: #2b2b2b;
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Header */
.gs-slide-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.gs-slide-avatar img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}
.gs-slide-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.gs-slide-name {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    display: block;
}
.gs-slide-time {
    font-size: 13px;
    color: #999;
    display: block;
}

/* Body text */
.gs-slide-body {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.75;
    word-break: break-word;
}
.gs-slide-body p { margin: 0 0 6px; }
.gs-slide-body p:last-child { margin-bottom: 0; }

/* See more link */
.gs-see-more {
    display: inline-block;
    margin-top: 6px;
    color: #e05c2a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.gs-see-more:hover { text-decoration: underline; color: #c44d20; }

/* === NAV === */
.gs-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.gs-arrow {
    background: transparent;
    border: 1.5px solid #555;
    color: #aaa;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
}
.gs-arrow:hover { border-color: #e05c2a; color: #e05c2a; }

/* DOTS — small circles, not bars */
.gs-carousel-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.gs-dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    max-width: 8px !important;
    border-radius: 50% !important;
    background: #555;
    border: none;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    transition: background 0.25s, transform 0.25s;
    flex-shrink: 0;
}
.gs-dot:hover { background: #999; }
.gs-dot.gs-dot-active {
    background: #e05c2a !important;
    transform: scale(1.4);
}

/* Empty */
.gs-no-stories {
    color: #888;
    font-size: 15px;
    text-align: center;
    padding: 32px 0;
}

/* === STORY FORM === */
.gs-login-notice {
    background: #1c1c1c;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #aaa;
    font-size: 15px;
}
.gs-login-notice a { color: #e05c2a; text-decoration: none; font-weight: 600; }

.gs-story-form-wrap {
    background: #1c1c1c;
    border-radius: 14px;
    padding: 24px;
    max-width: 680px;
    margin: 0 auto 32px;
}
.gs-form-user-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.gs-form-avatar img {
    width: 44px; height: 44px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid #e05c2a; display: block;
}
.gs-form-username { font-weight: 700; font-size: 15px; color: #fff; }

#gs-story-form textarea {
    width: 100%;
    background: #2a2a2a;
    border: 1.5px solid #3a3a3a;
    border-radius: 10px;
    color: #eee;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
    font-family: inherit;
}
#gs-story-form textarea:focus { outline: none; border-color: #e05c2a; }
#gs-story-form textarea::placeholder { color: #666; }

.gs-char-count { font-size: 12px; color: #666; text-align: right; margin-top: 4px; margin-bottom: 12px; }
#gs-chars-left.gs-warn { color: #e05c2a; }

.gs-form-footer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gs-photo-label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: #ccc !important;
    background: #2a2a2a !important;
    border: 1px solid #555 !important;
    border-radius: 7px !important;
    padding: 8px 14px !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s, border-color 0.2s;
    user-select: none;
    text-decoration: none !important;
    box-shadow: none !important;
}
.gs-photo-label svg { flex-shrink: 0; }
.gs-photo-label span { color: #ccc !important; }
.gs-photo-label:hover,
.gs-photo-label:hover span { color: #e05c2a !important; border-color: #e05c2a !important; }

#gs-photo-preview-wrap { position: relative; display: inline-block; }
#gs-photo-preview { height: 52px; width: 52px; object-fit: cover; border-radius: 8px; border: 2px solid #e05c2a; display: block; }
#gs-remove-photo {
    position: absolute; top: -8px; right: -8px;
    background: #e05c2a; color: #fff; border: none;
    border-radius: 50%; width: 20px; height: 20px;
    font-size: 11px; line-height: 20px; text-align: center;
    cursor: pointer; padding: 0;
}

#gs-submit-btn {
    margin-left: auto;
    background: #e05c2a; color: #fff; border: none;
    border-radius: 8px; padding: 11px 26px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: background 0.2s;
}
#gs-submit-btn:hover:not(:disabled) { background: #c44d20; }
#gs-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

#gs-form-message {
    margin-top: 14px; font-size: 14px;
    border-radius: 8px; padding: 10px 14px; display: none;
}
#gs-form-message.gs-success { background: #1a3a1a; color: #66bb6a; display: block; }
#gs-form-message.gs-error   { background: #3a1a1a; color: #ef5350; display: block; }

@media (max-width: 600px) {
    .gs-slide-card { padding: 16px; }
    .gs-story-form-wrap { padding: 16px; }
    .gs-form-footer { flex-direction: column; align-items: flex-start; }
    #gs-submit-btn { margin-left: 0; width: 100%; }
    .gs-arrow { display: none; }
}
