/**
 * Favorites System Styles
 *
 * @package HaberPro
 */

/* Favori Butonu */
.haberpro-favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.haberpro-favorite-btn:hover {
    background-color: #eeeeee;
    border-color: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.haberpro-favorite-btn.added {
    background-color: #ff0000;
    border-color: #ff0000;
    color: #ffffff;
}

.haberpro-favorite-btn.added:hover {
    background-color: #cc0000;
    border-color: #cc0000;
}

.haberpro-favorite-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
}

.haberpro-favorite-btn .favorite-text-added {
    display: none;
}

.haberpro-favorite-btn.added .favorite-text {
    display: none;
}

.haberpro-favorite-btn.added .favorite-text-added {
    display: inline;
}

/* Favori Sayfası */
.haberpro-favorites-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.favorites-header {
    margin-bottom: 40px;
    text-align: center;
}

.favorites-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.favorites-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.clear-favorites-btn {
    padding: 10px 20px;
    background-color: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-favorites-btn:hover {
    background-color: #cc0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.favorites-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.favorites-empty p {
    font-size: 18px;
}

/* Favori Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.favorite-item {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.favorite-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.favorite-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.favorite-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.favorite-item:hover .favorite-thumbnail img {
    transform: scale(1.05);
}

.favorite-content {
    padding: 20px;
}

.favorite-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.favorite-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.favorite-title a:hover {
    color: #ff0000;
}

.favorite-meta {
    margin-bottom: 10px;
    font-size: 13px;
    color: #999;
}

.favorite-excerpt {
    margin: 10px 0 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.remove-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #ff0000;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.remove-favorite-btn:hover {
    background-color: #ff0000;
    color: #ffffff;
    transform: scale(1.1);
}

/* Toast Bildirimi */
.haberpro-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.haberpro-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .favorites-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .favorites-title {
        font-size: 24px;
    }
    
    .haberpro-favorite-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .haberpro-favorite-btn .favorite-text,
    .haberpro-favorite-btn .favorite-text-added {
        display: none;
    }
}

