* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --whatsapp: #25d366;
    --facebook: #1877f2;
    --twitter: #1da1f2;
    --instagram: #e4405f;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ========================================
   NAVIGATION BAR
   ======================================== */

.navbar {
    background: #6366f1;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ========================================
   CAROUSEL SECTION
   ======================================== */

.carousel-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem;
    font-size: 2rem;
    font-weight: bold;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.indicator:hover {
    background: var(--secondary-color);
}

/* ========================================
   QUOTES WRAPPER & CONTAINER - NEW DESIGN
   ======================================== */

.quotes-wrapper {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 5%;
}

.quotes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* ========================================
   QUOTE CARD - BACKGROUND IMAGE DESIGN
   ======================================== */

.quote-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 500px;
    position: relative;
}

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

.quote-background {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Dark overlay for text readability */
.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.6)
    );
    z-index: 1;
}

.quote-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: white;
}

.quote-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: white;
    font-style: italic;
    font-weight: 500;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

/* ========================================
   QUOTE META (Author + Timestamp)
   ======================================== */

.quote-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
}

.quote-author i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.quote-timestamp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.quote-timestamp i {
    font-size: 0.9rem;
}

/* ========================================
   EDIT/DELETE BUTTONS FOR QUOTES
   ======================================== */

.quote-owner-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.8rem 0;
    flex-wrap: wrap;
}

.edit-quote-btn,
.delete-quote-btn {
    padding: 0.6rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.edit-quote-btn {
    background: rgba(59, 130, 246, 0.8);
    color: white;
}

.edit-quote-btn:hover {
    background: rgba(37, 99, 235, 0.9);
    border-color: white;
}

.delete-quote-btn {
    background: rgba(239, 68, 68, 0.8);
    color: white;
}

.delete-quote-btn:hover {
    background: rgba(220, 38, 38, 0.9);
    border-color: white;
}

/* ========================================
   QUOTE ACTIONS (Like, Comment)
   ======================================== */

.quote-actions {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
}

.like-btn, .comment-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-weight: 500;
}

.like-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: white;
}

.comment-btn:hover {
    background: rgba(99, 102, 241, 0.8);
    border-color: white;
}

/* ========================================
   SOCIAL SHARE
   ======================================== */

.social-share {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    flex-wrap: wrap;
}

.social-share span:first-child {
    font-weight: 600;
    color: white;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: scale(1.15);
}

.share-btn.whatsapp { background: var(--whatsapp); }
.share-btn.facebook { background: var(--facebook); }
.share-btn.twitter { background: var(--twitter); }
.share-btn.instagram { background: var(--instagram); }

.share-count {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   COMMENTS SECTION
   ======================================== */

.comments-section {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    margin-top: 1rem;
    color: var(--text-dark);
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

.comment {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comment-text {
    color: var(--text-dark);
    line-height: 1.5;
}

.comment-reply {
    margin-left: 2rem;
    margin-top: 0.5rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.reply-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.reply-btn:hover {
    text-decoration: underline;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.edit-comment-btn,
.delete-comment-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s;
}

.edit-comment-btn:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.delete-comment-btn {
    color: #ef4444;
}

.delete-comment-btn:hover {
    color: #dc2626;
    text-decoration: underline;
}

.comment-form {
    margin-top: 1rem;
}

.comment-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.comment-form button {
    margin-top: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-form button:hover {
    background: var(--secondary-color);
}

.login-prompt {
    text-align: center;
    padding: 1rem;
    color: var(--text-light);
}

.login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ========================================
   SIGN UP PROMPT (Below Each Quote)
   ======================================== */

.signup-prompt {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.signup-prompt a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: text-shadow 0.3s;
}

.signup-prompt a:hover {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.page-btn, .page-number {
    padding: 0.6rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn:hover, .page-number:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: bold;
}

.page-ellipsis {
    padding: 0.6rem;
    color: var(--text-light);
}

/* ========================================
   QUOTE CATEGORIES SECTION
   ======================================== */

.categories-section {
    max-width: 1400px;
    margin: 4rem auto 3rem;
    padding: 0 5%;
}

.categories-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.popular-category {
    border-top: 4px solid var(--primary-color);
}

.celebrity-category {
    border-top: 4px solid #fbbf24;
}

.viral-category {
    border-top: 4px solid #ef4444;
}

.category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.category-header i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.popular-category .category-header i {
    color: var(--primary-color);
}

.celebrity-category .category-header i {
    color: #fbbf24;
}

.viral-category .category-header i {
    color: #ef4444;
}

.category-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.category-badge {
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.category-quotes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-quote {
    background: var(--bg-light);
    padding: 1.2rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.category-quote:hover {
    background: #e5e7eb;
}

.category-quote-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.category-quote-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-quote-footer small {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.category-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.category-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.no-category-quotes {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
}

/* ========================================
   FOOTER SECTION
   ======================================== */

.footer {
    background: #1f2937;
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.social-link:hover {
    transform: scale(1.15);
}

.social-link.whatsapp { background: var(--whatsapp); }
.social-link.facebook { background: var(--facebook); }
.social-link.twitter { background: var(--twitter); }
.social-link.instagram { background: var(--instagram); }

.footer-bottom {
    text-align: center;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* ========================================
   FORM CONTAINER
   ======================================== */

.form-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    color: var(--text-light);
    font-size: 0.9rem;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

.checkbox-group label {
    font-weight: normal;
    line-height: 1.5;
}

.btn-primary {
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 1rem;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
    display: block;
    text-align: center;
}

.btn-secondary:hover {
    background: #4b5563;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee;
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.alert-success {
    background: #efe;
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

/* ========================================
   NO QUOTES MESSAGE
   ======================================== */

.no-quotes-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-quotes-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.no-quotes-message h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* ========================================
   DASHBOARD (if needed)
   ======================================== */

.dashboard-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.dashboard-container h1 {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.dashboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .quotes-container {
        grid-template-columns: 1fr;
    }
    
    .categories-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .carousel-slide img {
        height: 250px;
    }
    
    .carousel-caption {
        font-size: 1.3rem;
        padding: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .quotes-wrapper {
        padding: 0 3%;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
    
    .quote-owner-actions {
        flex-direction: column;
    }
    
    .edit-quote-btn,
    .delete-quote-btn {
        width: 100%;
        justify-content: center;
    }
    
    .quote-actions {
        flex-wrap: wrap;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pagination {
        font-size: 0.9rem;
    }
    
    .social-share {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .carousel-container {
        padding: 0 1rem;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .quote-background {
        padding: 1.5rem;
    }
    
    .like-btn,
    .comment-btn {
        width: 100%;
        justify-content: center;
    }
    
    .page-btn, .page-number {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .categories-title {
        font-size: 1.5rem;
    }
    
    .category-header h3 {
        font-size: 1.2rem;
    }
    
    .form-container {
        padding: 1rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .navbar,
    .carousel-container,
    .quote-actions,
    .social-share,
    .comment-form,
    .pagination,
    .footer,
    .quote-owner-actions {
        display: none;
    }
    
    .quote-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus states for keyboard navigation */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
    }
    
    .quote-card,
    .category-box,
    .footer {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .carousel-slide {
        transition: none;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

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

.pulse {
    animation: pulse 2s infinite;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

/* ========================================
   END OF CSS FILE - 8th December 2025
   ======================================== */