/**
 * QuoteGenius - Main Stylesheet
 * 
 * Custom styles for the QuoteGenius website
 */

/* Global styles */
:root {
    --primary-color: #4e73df;
    --secondary-color: #6c757d;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --quote-bg: #ffffff;
    --quote-border: #e9ecef;
    --apple-blue: #0071e3;
    --apple-dark: #1d1d1f;
    --apple-light-gray: #f5f5f7;
    --apple-medium-gray: #86868b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--apple-dark);
    background-color: #f8f9fa;
}

a {
    color: var(--apple-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2e59d9;
    text-decoration: none;
}

/* Quote styling */
.quote-card {
    background-color: var(--quote-bg);
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #4e73df;
}

.quote-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.quote-text {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    line-height: 1.6;
    position: relative;
    padding: 0 2.5rem;
    text-align: justify;
    hyphens: auto;
    text-justify: inter-word;
}

.quote-text::before {
    content: none;
}

.quote-text::after {
    content: none;
}

.quote-author {
    text-align: right;
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
    font-style: italic;
    margin-top: 1rem;
    padding-right: 1rem;
}

.quote-author::before {
    content: '— ';
}

.quote-mark {
    font-size: 3rem;
    font-family: Georgia, serif;
    position: absolute;
    top: -1rem;
    left: 0;
    color: rgba(0,0,0,0.1);
    line-height: 1;
}

.quote-meta {
    color: var(--apple-medium-gray);
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
}

.quote-meta cite {
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--apple-dark);
}

.quote-source {
    font-style: italic;
    margin-bottom: 0.75rem;
}

.quote-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

/* Tag badges */
.tag-badge {
    background-color: var(--apple-light-gray);
    border-radius: 100px;
    color: var(--apple-medium-gray);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.tag-badge:hover {
    background-color: #eaeaea;
    color: var(--apple-dark);
    text-decoration: none;
}

/* Action row */
.quote-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--apple-light-gray);
}

/* TTS Controls */
.quote-tts-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Social Sharing Buttons */
.quote-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-label {
    color: var(--apple-medium-gray);
    font-size: 0.9rem;
}

.share-btn {
    align-items: center;
    border-radius: 50%;
    color: white;
    display: flex;
    height: 32px;
    justify-content: center;
    transition: all 0.3s ease;
    width: 32px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.share-btn:hover {
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-pinterest {
    background-color: #bd081c;
}

.share-linkedin {
    background-color: #0077b5;
}

/* Customize Quote Modal */
#quoteCustomizerModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

#quoteCustomizerModal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

#quoteCustomizerModal .modal-body {
    padding: 1rem 1.5rem;
}

#quoteCustomizerModal .modal-footer {
    border-top: none;
    padding: 0.5rem 1.5rem 1.5rem;
}

.preview-container {
    background-color: var(--apple-light-gray);
    border-radius: 8px;
    padding: 1rem;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

/* Form Styling */
.form-label.fw-light {
    color: var(--apple-medium-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #d2d2d7;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form-control-color {
    width: 100%;
    height: 38px;
    padding: 0.375rem;
    border-radius: 8px;
}

/* Buttons */
.btn-primary, .btn-outline-primary {
    border-radius: 100px;
    font-weight: 500;
    padding: 0.4rem 1rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--apple-blue);
    border-color: var(--apple-blue);
}

.btn-primary:hover {
    background-color: #0062cc;
    border-color: #0062cc;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: #d2d2d7;
    color: var(--apple-dark);
}

.btn-outline-primary:hover {
    background-color: var(--apple-light-gray);
    border-color: #d2d2d7;
    color: var(--apple-dark);
}

.btn-sm {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--apple-blue), #004aad);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.35rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Category cards */
.category-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.category-card-body {
    padding: 1.75rem;
    flex-grow: 1;
}

.category-card-title {
    color: var(--apple-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.category-card-text {
    color: var(--apple-medium-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Search form */
.search-form {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    padding: 1.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.pagination-link, .pagination-current, .pagination-disabled, .pagination-ellipsis {
    align-items: center;
    border: 1px solid #dee2e6;
    display: flex;
    height: 38px;
    justify-content: center;
    margin: 0 5px;
    min-width: 38px;
    padding: 0.375rem 0.75rem;
}

.pagination-link {
    background-color: white;
    color: var(--primary-color);
}

.pagination-link:hover {
    background-color: #e9ecef;
    text-decoration: none;
}

.pagination-current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.pagination-ellipsis {
    background-color: white;
    border: none;
}

/* Admin dashboard */
.admin-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 100%;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.admin-card-icon {
    background-color: rgba(78, 115, 223, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    height: 60px;
    margin-bottom: 1rem;
    width: 60px;
}

.admin-card-count {
    color: var(--dark-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-card-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Main content styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Quote content sections */
.quote-content {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quote-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

/* Quote styling */
.blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 20px;
    margin: 20px 0;
}

.blockquote p {
    font-size: 1.25rem;
    font-style: italic;
    color: #2c3e50;
    line-height: 1.6;
}

.blockquote-footer {
    color: #6c757d;
    font-size: 1rem;
    margin-top: 10px;
}

.blockquote-footer cite {
    font-style: normal;
    font-weight: 500;
}

/* Category buttons */
.btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
    
    .quote-meta cite {
        font-size: 1rem;
    }
    
    .quote-content {
        padding: 15px;
    }
    
    .blockquote p {
        font-size: 1.1rem;
    }
    
    .blockquote-footer {
        font-size: 0.9rem;
    }
} 