/**
 * BGS User Activity - Styles
 * Dark theme, Netflix-inspired progress bars, timeline layout
 */

/* ==================== PROGRESS BAR ON CARDS ==================== */
.bgs-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    border-radius: 0 0 2px 2px;
    overflow: hidden;
}

.bgs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e50914, #ff6b6b);
    transition: width 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.bgs-progress-complete .bgs-progress-fill {
    background: linear-gradient(90deg, #4caf50, #81c784);
}

/* ==================== BOOKMARK BUTTON ON CARDS (Deprecated - kept for compatibility) ==================== */
.bgs-bookmark-btn {
    display: none !important; /* Hidden - now using card buttons under cards */
}

/* ==================== CARD BUTTONS (Bookmark + Party + Watch) ==================== */

/* Card row: flex wrap yap ki tüm kartlar aynı yükseklikte olsun */
#gmr-main-load.row, .gmr-archive-wrap, .gmr-blog-wrap, .idmuvi-blog-card-grid {
    display: flex !important;
    flex-wrap: wrap !important;
}
/* Article item: stretch to fill row height */
.item-infinite {
    display: flex !important;
    flex-direction: column !important;
}
/* Card content: flex column yap, butonlar hep altta hizalansın */
.gmr-box-content.gmr-box-archive {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}
.gmr-box-content .item-article {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}
.gmr-box-content .item-article .entry-header {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}
/* Buton satırını en alta it */
.gmr-watch-movie {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    width: 100% !important;
    padding: 8px 0 !important;
    margin-top: auto !important;
}

.bgs-card-bookmark-btn,
.bgs-card-party-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.bgs-card-bookmark-btn {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    order: 1; /* solda */
}

.bgs-card-bookmark-btn:hover {
    background: rgba(229, 9, 20, 0.9);
    transform: scale(1.1);
}

.bgs-card-bookmark-btn.bgs-bookmarked {
    background: rgba(229, 9, 20, 0.9);
}

.bgs-card-party-btn {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    order: 2; /* ortada */
}

.bgs-card-party-btn:hover {
    background: rgba(76, 175, 80, 0.9);
    transform: scale(1.1);
}

/* Ensure İzle button stays on the right */
.gmr-watch-movie .gmr-watch-button {
    flex-grow: 0;
    margin: 0 !important;
    order: 3; /* sağda */
}

/* ==================== PARTY TAB IN PLAYER NAV ==================== */
.bgs-party-tab a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.bgs-party-tab a:hover {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50 !important;
}

.bgs-party-tab svg {
    font-size: 14px;
}

/* ==================== DASHBOARD HEADER ==================== */
.bgs-activity-dashboard,
.bgs-watchlist-page,
.bgs-history-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.bgs-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.bgs-activity-header h2 {
    margin: 0;
    font-size: 24px;
    color: #222;
}

.bgs-activity-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.bgs-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bgs-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bgs-btn-primary {
    background: linear-gradient(135deg, #e50914, #b20710);
    color: #fff;
}

.bgs-btn-primary:hover {
    background: linear-gradient(135deg, #ff1a25, #e50914);
}

.bgs-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.bgs-btn-secondary:hover {
    background: #d0d0d0;
}

.bgs-btn-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
}

.bgs-btn-danger {
    background: linear-gradient(135deg, #f44336, #c62828);
    color: #fff;
}

.bgs-btn-danger:hover {
    background: linear-gradient(135deg, #ff5252, #f44336);
}

/* ==================== SELECT ==================== */
.bgs-select {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    font-size: 13px;
    cursor: pointer;
}

.bgs-select:focus {
    outline: none;
    border-color: #e50914;
}

/* ==================== FILTERS ==================== */
.bgs-activity-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.bgs-filter-btn,
.bgs-time-filter-btn {
    padding: 6px 14px;
    background: #555;
    border: 1px solid #444;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bgs-filter-btn:hover,
.bgs-time-filter-btn:hover {
    background: rgba(229, 9, 20, 0.85);
    color: #fff;
    border-color: #e50914;
}

.bgs-filter-btn.active,
.bgs-time-filter-btn.active {
    background: linear-gradient(135deg, #e50914, #b20710);
    color: #fff;
    border-color: #e50914;
}

.bgs-filter-separator {
    color: rgba(0, 0, 0, 0.15);
    margin: 0 5px;
}

/* ==================== ACTIVITY LIST (TIMELINE) ==================== */
.bgs-activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bgs-activity-date-group {
    margin-bottom: 10px;
}

.bgs-date-header {
    font-size: 14px;
    color: #555;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bgs-activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bgs-activity-item:hover {
    background: #fff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bgs-activity-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.bgs-activity-thumb {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.bgs-activity-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bgs-activity-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bgs-activity-action {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bgs-activity-title {
    font-size: 15px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
}

.bgs-activity-title:hover {
    color: #e50914;
}

.bgs-activity-time {
    font-size: 12px;
    color: #888;
}

/* ==================== WATCHLIST GRID ==================== */
.bgs-watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.bgs-watchlist-card {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bgs-watchlist-card:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.bgs-watchlist-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.bgs-watchlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bgs-watchlist-card:hover .bgs-watchlist-thumb img {
    transform: scale(1.05);
}

.bgs-watchlist-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bgs-watchlist-title {
    font-size: 16px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
}

.bgs-watchlist-title:hover {
    color: #e50914;
}

.bgs-watchlist-type,
.bgs-watchlist-added {
    font-size: 12px;
    color: #666;
}

.bgs-watchlist-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bgs-watchlist-actions .bgs-btn {
    flex: 1;
    justify-content: center;
}

/* ==================== HISTORY LIST ==================== */
.bgs-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bgs-history-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bgs-history-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bgs-history-thumb {
    width: 80px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.bgs-history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bgs-history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bgs-history-title {
    font-size: 16px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
}

.bgs-history-title:hover {
    color: #e50914;
}

.bgs-history-type,
.bgs-history-watched,
.bgs-history-count {
    font-size: 12px;
    color: #555;
}

.bgs-history-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.bgs-history-progress {
    font-size: 12px;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ==================== MODAL ==================== */
.bgs-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.bgs-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.bgs-modal-content h3 {
    margin: 0 0 15px 0;
    color: #222;
    font-size: 20px;
}

.bgs-modal-content p {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.bgs-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ==================== LOADING & EMPTY STATES ==================== */
.bgs-loading {
    text-align: center;
    padding: 40px;
    color: #555;
    font-size: 14px;
}

.bgs-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bgs-empty-state p {
    margin: 10px 0;
    color: #555;
}

.bgs-empty-state p:first-child {
    font-size: 18px;
    color: #333;
}

.bgs-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    font-size: 32px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .bgs-activity-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bgs-activity-actions {
        width: 100%;
    }

    .bgs-activity-actions .bgs-btn,
    .bgs-activity-actions .bgs-select {
        flex: 1;
    }

    .bgs-activity-filters {
        justify-content: center;
    }

    .bgs-watchlist-grid {
        grid-template-columns: 1fr;
    }

    .bgs-activity-item,
    .bgs-history-item {
        flex-wrap: wrap;
    }

    .bgs-activity-thumb,
    .bgs-history-thumb {
        width: 50px;
        height: 70px;
    }

    .bgs-history-actions {
        flex-direction: row;
        width: 100%;
        align-items: center;
    }
}

/* ==================== CONTENT-THUMBNAIL RELATIVE ==================== */
.content-thumbnail,
.gmr-box-archive .content-thumbnail,
.item-infinite .content-thumbnail {
    position: relative !important;
}

/* ==================== RECENT COMMENTS WIDGET - matches other widget design ==================== */
.widget_recent-comments {
    margin-top: 30px !important;
    background: transparent !important;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow: visible;
}

.widget_recent-comments .homemodule-title,
.widget_recent-comments .widget-title {
    margin: 0 0 10px 0 !important;
    padding: 4px 8px !important;
    border-radius: 5px !important;
    background-color: #e50a4a !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 14px !important;
    text-transform: uppercase;
    letter-spacing: normal;
    overflow: hidden;
}

.widget_recent-comments .widget-title:before,
.widget_recent-comments .widget-title:after {
    display: none !important;
}

.widget_recent-comments #recentcomments {
    list-style: none !important;
    padding: 10px !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #b6d6a0;
    border-radius: 5px;
}

.widget_recent-comments .recentcomments {
    background: rgba(255,255,255,0.55);
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    line-height: 1.5;
}

.widget_recent-comments .recentcomments:hover {
    background: rgba(255,255,255,0.75);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.widget_recent-comments .bgs-comment-avatar {
    display: none !important;
}

.widget_recent-comments .bgs-comment-body {
    width: 100%;
    min-width: 0;
}

.widget_recent-comments .bgs-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.widget_recent-comments .bgs-comment-author {
    color: #e50a4a;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}

.widget_recent-comments .bgs-comment-author:hover {
    color: #b2073a;
}

.widget_recent-comments .bgs-comment-time {
    color: #888;
    font-size: 11px;
    flex-shrink: 0;
}

.widget_recent-comments .bgs-comment-post {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.widget_recent-comments .bgs-comment-post a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
}

.widget_recent-comments .bgs-comment-post a:hover {
    color: #e50a4a;
}

.widget_recent-comments .bgs-comment-excerpt {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    word-break: break-word;
}

/* ==================== POST VIEWS COUNT — aynı renk ==================== */
.post-views-count {
    color: inherit;
    font-weight: 600;
}

.post-views-label {
    color: inherit;
}

.gmr-blog-view {
    color: inherit;
}

.gmr-moviedata.gmr-movie-view {
    color: inherit;
}
