/**
 * Web Stories Styles
 *
 * @package HaberPro
 */

.web-stories-section {
    margin-bottom: 30px;
    padding: 20px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #eee;
}

/* Web Stories Eklentisi için wrapper */
.web-stories-plugin-wrapper {
    /* Eklenti kendi stillerini kullanır */
}

.web-stories-plugin-wrapper .web-stories-list {
    /* Eklenti stillerini override etme */
}

.web-stories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.web-stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.web-stories-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.web-stories-icon {
    font-size: 28px;
}

.web-stories-more {
    color: #FF0000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.web-stories-more:hover {
    color: #cc0000;
}

.web-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.web-stories-grid::-webkit-scrollbar {
    height: 6px;
}

.web-stories-grid::-webkit-scrollbar-track {
    background: transparent;
}

.web-stories-grid::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}

.web-stories-grid::-webkit-scrollbar-thumb:hover {
    background-color: #bbb;
}

.web-story-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #222;
    transition: transform 0.3s ease;
    min-width: 150px;
}

.web-story-item:hover {
    transform: translateY(-5px);
}

.web-story-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 133.33%; /* 3:4 aspect ratio (150x200) */
    border-radius: 16px;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.web-story-item:hover .web-story-thumbnail {
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    border-color: rgba(255,0,0,0.3);
    transform: translateY(-4px);
}

.web-story-thumbnail img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1;
}

.web-story-item:hover .web-story-thumbnail img {
    transform: scale(1.1);
}

.web-story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.web-story-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.web-story-item:hover .web-story-gradient {
    opacity: 0.8;
}

.web-story-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 3;
    transition: all 0.3s ease;
}

.web-story-item:hover .web-story-badge {
    background-color: rgba(255,0,0,0.9);
    transform: scale(1.1);
}

.web-story-badge svg {
    width: 16px;
    height: 16px;
}

.web-story-content {
    text-align: center;
    padding: 0 4px;
}

.web-story-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 6px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 34px;
    transition: color 0.3s ease;
}

.web-story-item:hover .web-story-title {
    color: #FF0000;
}

.web-story-date {
    font-size: 11px;
    color: #999;
    display: block;
    font-weight: 500;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .web-stories-section {
        margin-bottom: 20px;
        padding: 15px 0;
    }
    
    .web-stories-container {
        padding: 0 15px;
    }
    
    .web-stories-title {
        font-size: 20px;
    }
    
    .web-stories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .web-story-item {
        min-width: 120px;
    }
    
    .web-story-title {
        font-size: 12px;
        min-height: 32px;
    }
}

@media screen and (max-width: 480px) {
    .web-stories-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .web-stories-title {
        font-size: 18px;
    }
    
    .web-stories-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .web-story-item {
        min-width: 100px;
    }
}

