/* Story Module Frontend Styles */

/* Single Story */
.sm-story-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sm-breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.sm-breadcrumbs a {
    color: #2271b1;
    text-decoration: none;
}

.sm-breadcrumbs a:hover {
    text-decoration: underline;
}

.sm-breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

.sm-breadcrumbs .current {
    color: #333;
}

.sm-story-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-top: 100px;
    align-items: start;
}

@media (max-width: 768px) {
    .sm-story-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.sm-story-image-wrapper {
    position: relative;
}

.sm-story-featured-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.sm-story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-play-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #dc3232;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.sm-play-button:hover {
    background: #b82828;
    transform: scale(1.05);
}

.sm-play-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.sm-story-meta {
    padding: 20px 0;
}

.sm-story-category {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sm-story-category .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.sm-story-title {
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #23282d;
}

.sm-story-info-notice {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f0f8ff;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

.sm-story-info-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.sm-story-info-notice a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.sm-story-info-notice a:hover {
    color: #135e96;
    text-decoration: underline;
}

.sm-social-share {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.sm-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.sm-share-btn:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

.sm-share-btn svg {
    width: 20px;
    height: 20px;
}

.sm-story-content {
    margin-top: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.sm-story-content p {
    margin-bottom: 20px;
}

/* Audio Player Footer */
.sm-audio-player-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #dc3232;
    color: #fff;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.sm-player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.sm-player-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 250px;
}

.sm-player-back {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

.sm-player-back:hover {
    opacity: 0.8;
}

.sm-player-back .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.sm-player-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-player-center {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.sm-player-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background 0.3s;
}

.sm-player-btn:hover {
    background: rgba(255,255,255,0.1);
}

.sm-player-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.sm-play-pause {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
}

.sm-play-pause .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.sm-btn-label {
    font-size: 10px;
    margin-top: 2px;
}

.sm-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    max-width: 400px;
}

.sm-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}

.sm-time-display {
    font-size: 12px;
    white-space: nowrap;
    margin-left: 10px;
}

.sm-player-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 200px;
    justify-content: flex-end;
}

.sm-speed-select {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.sm-speed-select option {
    background: #dc3232;
    color: #fff;
}

/* Archive */
.sm-stories-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 50px 0;
}

.page-title {
    font-size: 42px;
    margin-bottom: 15px;
    color: #23282d;
    font-weight: 600;
    display: block;
}

.archive-description {
    font-size: 16px;
    color: #666;
}

.sm-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sm-story-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.sm-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.sm-story-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sm-story-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.sm-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sm-story-card:hover .sm-card-img {
    transform: scale(1.05);
}

.sm-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.sm-story-card:hover .sm-play-overlay {
    opacity: 1;
}

.sm-play-overlay .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #fff;
}

.sm-story-card-content {
    padding: 20px;
}

.sm-story-card-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.sm-story-card-category .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.sm-story-card-title {
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #23282d;
}

.sm-story-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .sm-story-title {
        font-size: 28px;
    }
    
    .sm-player-container {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .sm-player-left,
    .sm-player-right {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
    
    .sm-player-center {
        flex: 1 1 100%;
        order: 3;
    }
    
    .sm-stories-grid {
        grid-template-columns: 1fr;
    }
}

