/* Quotes Page Styles */

/* Quotes Hero Section */
.quotes-hero {
    background: linear-gradient(135deg, #088bd4 0%, #0056b3 100%);
    color: white;
    padding: 140px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quotes-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.quotes-hero-content {
    position: relative;
    z-index: 2;
}

.quotes-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 1rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6);
    }
}

.quotes-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quotes-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.quotes-stats .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quotes-stats .stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quotes-stats .stat i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.quotes-stats .stat span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.quotes-stats .stat h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

/* Quotes Content */
.quotes-content {
    padding: 4rem 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.quote-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(8, 139, 212, 0.1);
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 4rem;
    color: rgba(8, 139, 212, 0.1);
    font-family: serif;
    line-height: 1;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #088bd4;
}

.quote-text {
    margin-bottom: 1.5rem;
}

.quote-text p {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.8;
    font-style: italic;
    margin: 0;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.book-info,
.page-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.book-info i,
.page-info i {
    color: #088bd4;
    font-size: 1rem;
}

.book-info span {
    font-weight: 600;
    color: #088bd4;
}

.quote-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.action-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.like-btn:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.like-btn.liked {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.like-btn.liked i {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.share-btn:hover {
    background: #4ecdc4;
    color: white;
    border-color: #4ecdc4;
}

.copy-btn:hover {
    background: #45b7d1;
    color: white;
    border-color: #45b7d1;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: linear-gradient(135deg, #088bd4 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(8, 139, 212, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(8, 139, 212, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.load-more-btn i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quotes-title {
        font-size: 2.5rem;
        margin-top: 0.5rem;
    }
    
    .quotes-hero {
        padding: 120px 0 60px 0;
    }
    
    .quotes-stats {
        gap: 1.5rem;
    }
    
    .quotes-stats .stat {
        padding: 1.5rem;
    }
    
    .quotes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quote-card {
        padding: 1.5rem;
    }
    
    .quote-text p {
        font-size: 1.1rem;
    }
    
    .quote-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quote-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quotes-hero {
        padding: 100px 0 50px 0;
    }
    
    .quotes-title {
        font-size: 2rem;
        margin-top: 0.5rem;
    }
    
    .quotes-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .quotes-stats {
        gap: 1rem;
        flex-direction: row;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .quotes-stats .stat {
        padding: 1rem;
        min-width: 100px;
        flex: 1;
        max-width: 120px;
    }
    
    .quotes-stats .stat i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .quotes-stats .stat span {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }
    
    .quotes-stats .stat h3 {
        font-size: 1.2rem;
    }
    
    .quote-card {
        padding: 1rem;
        margin: 0 10px;
    }
    
    .quote-text p {
        font-size: 1rem;
    }
    
    .action-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .load-more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading placeholder for quotes */
.quote-card.loading {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    animation: pulse 2s infinite;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-card.loading .quote-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.loading-placeholder {
    text-align: center;
    color: #6c757d;
}

.loading-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #088bd4;
}

.loading-placeholder p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Empty quotes message */
.empty-quotes {
    text-align: center;
    padding: 4rem 1rem;
    color: #6c757d;
    grid-column: 1 / -1;
}

.empty-quotes i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #088bd4;
}

.empty-quotes h3 {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 1.5rem;
}

.empty-quotes p {
    margin: 0;
    font-size: 1.1rem;
}

/* Quote card status indicators */
.quote-card.inactive {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.quote-card.inactive::before {
    content: 'غير نشط';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 1;
} 