/* Favorite button styles */
.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.favorite-btn i {
    font-size: 12px;
    color: white;
    transition: color 0.2s;
}

.favorite-btn.active i {
    color: #ff4757;
}

/* Game card styles */
.game-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-5px);
}

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

.game-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-link:hover .game-image img {
    transform: scale(1.05);
}

/* Game overlay styles */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-button {
    background: #ff4757;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.play-button:hover {
    background: #ff6b81;
}

/* Game info styles */

.favorite-game-title {
    margin-top: 0.5rem;
    font-size: 20px;
    color: #2f3542;
    text-align: center;
}

.game-meta {
    display: flex;
    gap: 8px;
    color: #747d8c;
    font-size: 12px;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item i {
    font-size: 12px;
}

/* Empty state styles */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: #f1f2f6;
    border-radius: 8px;
    margin-top: 2rem;
}

.empty-state i {
    font-size: 3rem;
    color: #ff4757;
    margin-bottom: 1rem;
}

.empty-state h2 {
    font-size: 1.5rem;
    color: #2f3542;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #747d8c;
    margin-bottom: 1.5rem;
}

.browse-games-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #ff4757;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.browse-games-btn:hover {
    background: #ff6b81;
}

/* Recently played sidebar styles */
.recently-played-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-header {
    margin-bottom: 1.2rem;
}

.sidebar-header h2 {
    font-size: 1.3rem;
    color: #2f3542;
    margin-bottom: 0.4rem;
}

.recently-played-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recently-played-item {
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    background: #f8f9fa;
    transition: all 0.2s;
}

.recently-played-item:hover {
    background: #f1f2f6;
    transform: translateX(5px);
}

.recently-played-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.recently-played-title {
    font-weight: 600;
    color: #2f3542;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-decoration: none;
    transition: color 0.2s;
}

.recently-played-title:hover {
    color: #ff4757;
}

.recently-played-time {
    color: #747d8c;
    font-size: 0.8rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.recently-played-time i {
    font-size: 0.8rem;
}

/* Privacy notice modal styles */
.privacy-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.privacy-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.privacy-content h2 {
    color: #2f3542;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-content h2 i {
    color: #ff4757;
}

.privacy-content p {
    color: #57606f;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.privacy-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.privacy-content li {
    color: #57606f;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.privacy-content li:before {
    content: "•";
    color: #ff4757;
    position: absolute;
    left: 0;
}

.privacy-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-primary {
    background: #ff4757;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #ff6b81;
}

.btn-secondary {
    background: #f1f2f6;
    color: #57606f;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #dfe4ea;
}

/* Notification styles */
.favorite-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff4757;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Container styles */
.container.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Layout styles */
.favorites-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.favorites-main {
    min-width: 0;
}

.favorites-container {
    width: 100%;
}

/* Header styles */
.favorites-header {
    text-align: center;
    margin-bottom: 2rem;
}

.favorites-header h1 {
    font-size: 2.5rem;
    color: #2f3542;
    margin-bottom: 0.5rem;
}

.favorites-header h1 i {
    color: #ff4757;
    margin-right: 0.5rem;
}

.subtitle {
    color: #747d8c;
    font-size: 1.1rem;
}

/* Game grid styles */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
    gap: 1.6rem;
    margin-top: 2rem;
}

/* Category page specific styles */
.category-browse-page .game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 20px;
}

.category-browse-page .game-cell {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.category-browse-page .game-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.category-browse-page .game-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-browse-page .game-title {
    margin-top: 8px;
    font-size: 14px;
    text-align: center;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .favorites-layout {
        grid-template-columns: 1fr;
    }
    
    .recently-played-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .container.main-content {
        padding: 1rem;
    }

    .favorites-header h1 {
        font-size: 2rem;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .game-title {
        font-size: 0.875rem;
    }

    .meta-item {
        font-size: 0.75rem;
    }

    .play-button {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
} 