/**
 * RSS Reader Component Styles
 * @package    com_rssreader
 * @version    1.0.0
 */

/* Main Container */
.rssreader-container {
    margin: 20px 0;
}

/* Header Styles */
.rssreader-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.rssreader-header h2 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Layout Specific Styles */
.rssreader-layout {
    width: 100%;
}

/* List Layout */
.rssreader-item-list {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.rssreader-item-list:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.rssreader-item-list .rssreader-image img {
    border-radius: 6px;
    max-width: 100%;
    height: auto;
}

.rssreader-item-list .rssreader-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.rssreader-item-list .rssreader-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rssreader-item-list .rssreader-title a:hover {
    color: #007bff;
}

/* Grid/Card Layout */
.rssreader-item-grid,
.rssreader-item-card {
    height: 100%;
}

.rssreader-item-grid .card,
.rssreader-item-card .card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.rssreader-item-grid .card:hover,
.rssreader-item-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.rssreader-item-grid .card-img-top,
.rssreader-item-card .card-img-top {
    transition: transform 0.3s ease;
}

.rssreader-item-grid .card:hover .card-img-top,
.rssreader-item-card .card:hover .card-img-top {
    transform: scale(1.05);
}

.rssreader-item-grid .card-title a,
.rssreader-item-card .card-title a {
    color: #212529;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.rssreader-item-grid .card-title a:hover,
.rssreader-item-card .card-title a:hover {
    color: #007bff;
}

/* Price Styling */
.rssreader-price {
    margin: 10px 0;
}

.rssreader-price .badge {
    font-size: 0.875rem;
    padding: 6px 12px;
    font-weight: 600;
}

/* Description */
.rssreader-description {
    margin: 15px 0;
}

.rssreader-description p {
    margin-bottom: 0;
    color: #6c757d;
    line-height: 1.5;
}

/* Meta Information */
.rssreader-meta {
    margin-top: 15px;
    font-size: 0.875rem;
    color: #6c757d;
}

.rssreader-meta > * {
    margin-right: 15px;
    display: inline-block;
}

.rssreader-meta > *:last-child {
    margin-right: 0;
}

.rssreader-brand,
.rssreader-condition {
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

/* Image Styles */
.rssreader-image {
    overflow: hidden;
}

.rssreader-image img {
    transition: transform 0.3s ease;
}

/* Footer */
.rssreader-footer {
    color: #6c757d;
    font-size: 0.875rem;
}

.rssreader-footer a {
    color: #6c757d;
    text-decoration: none;
}

.rssreader-footer a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .rssreader-item-list .rssreader-image {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .rssreader-item-list .rssreader-title {
        font-size: 1.125rem;
    }
    
    .rssreader-meta > * {
        display: block;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

@media (max-width: 576px) {
    .rssreader-container {
        margin: 10px 0;
    }
    
    .rssreader-header {
        margin-bottom: 20px;
    }
    
    .rssreader-item-list {
        padding: 15px;
    }
    
    .rssreader-item-list .rssreader-title {
        font-size: 1rem;
    }
}

/* Loading Animation */
.rssreader-loading {
    text-align: center;
    padding: 40px 20px;
}

.rssreader-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: rssreader-spin 1s linear infinite;
}

@keyframes rssreader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.rssreader-error {
    padding: 20px;
    border-radius: 8px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Success States */
.rssreader-success {
    padding: 20px;
    border-radius: 8px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Button Enhancements */
.rssreader-item .btn {
    transition: all 0.3s ease;
}

.rssreader-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Custom Badge Styles */
.rssreader-price .badge-success {
    background-color: #28a745;
    background-image: linear-gradient(180deg, #34ce57 0%, #28a745 100%);
}

/* Card Footer Enhancements */
.rssreader-item .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Hover Effects */
.rssreader-item-list:hover .rssreader-title a {
    color: #007bff;
}

/* Focus States for Accessibility */
.rssreader-item a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .rssreader-item {
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .rssreader-item .btn {
        display: none;
    }
    
    .rssreader-item .card:hover {
        transform: none;
        box-shadow: none;
    }
}