/* Section-specific styling */

/* Home section */
body.home .fragment-container {
    background: #fff;
}

body.home .fragment-content {
    background: #fff;
    border: 2px solid #000;
}

body.home .section-description {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

body.home .section-description h2 {
    color: #000;
}

body.home .section-description p {
    color: #000;
}

/* Today section */
body.today .fragment-container {
    background: #fff;
}

body.today .fragment-content {
    background: #fff;
    border: 2px solid #000;
}

body.today .section-description {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

body.today .section-description h2 {
    color: #000;
}

body.today .section-description p {
    color: #000;
}

body.today .fragment-text {
    color: #000;
}

body.today .btn-primary {
    background: #000;
}

body.today .btn-primary:hover {
    background: #333;
}

/* Tomorrow section */
body.tomorrow .fragment-container {
    background: #fff;
}

body.tomorrow .fragment-content {
    background: #fff;
    border: 2px solid #000;
}

body.tomorrow .section-description {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

body.tomorrow .section-description h2 {
    color: #000;
}

body.tomorrow .section-description p {
    color: #000;
}

body.tomorrow .fragment-text {
    color: #000;
}

body.tomorrow .btn-primary {
    background: #000;
}

body.tomorrow .btn-primary:hover {
    background: #333;
}

/* Never section */
/* Never section */
body.never .fragment-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

body.never .fragment-content {
    background: #2a2a2a;
    border: 2px solid #3a0a0a;
}

body.never .section-description {
    background: #2a2a2a;
    border: 2px solid #3a0a0a;
}

body.never .section-description h2 {
    color: #e0e0e0;
}

body.never .section-description p {
    color: #d0d0d0;
}

body.never .fragment-text {
    color: #e0e0e0;
}

body.never .fragment-meta {
    color: #d0d0d0;
    border-top-color: #4a1a1a;
}

body.never .language,
body.never .themes,
body.never .date {
    color: #d0d0d0;
}

body.never .btn-primary {
    background: #4a1a1a;
    color: #e0e0e0;
}

body.never .btn-primary:hover {
    background: #3a0a0a;
}
/* About section */
body.about .content-container {
    background: #fff;
}

body.about .about-content {
    border: 2px solid #000;
    background: #fff;
}

body.about h1 {
    color: #000;
    border-bottom-color: #000;
}

body.about h2 {
    color: #000;
}

body.about p,
body.about li {
    color: #000;
}

/* Contact section */
body.contact .content-container {
    background: #fff;
}

body.contact .contact-content {
    border: 2px solid #000;
    background: #fff;
}

body.contact h1 {
    color: #000;
    border-bottom-color: #000;
}

body.contact h2 {
    color: #000;
}

body.contact p,
body.contact li {
    color: #000;
}

/* FAQ section */
body.faq .content-container {
    background: #fff;
}

body.faq .faq-content {
    border: 2px solid #000;
    background: #fff;
}

body.faq h1 {
    color: #000;
    border-bottom-color: #000;
}

body.faq h2 {
    color: #000;
}

body.faq p,
body.faq li {
    color: #000;
}

/* Privacy section */
body.privacy .content-container {
    background: #fff;
}

body.privacy .privacy-content {
    border: 2px solid #000;
    background: #fff;
}

body.privacy h1 {
    color: #000;
    border-bottom-color: #000;
}

body.privacy h2,
body.privacy h3 {
    color: #000;
}

body.privacy p,
body.privacy li {
    color: #000;
}

/* Attribution page styles */
body.attribution .content-container {
    background: #fff;
}

body.attribution .attribution-content {
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.attribution .attribution-content h1 {
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

body.attribution .attribution-content h3 {
    color: #000;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

body.attribution .attribution-content p,
body.attribution .attribution-content li {
    color: #000;
    line-height: 1.6;
}

body.attribution .attribution-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

body.attribution .attribution-content .contact-link {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    transition: all 0.3s ease;
}

body.attribution .attribution-content .contact-link:hover {
    color: #333;
    border-bottom-color: #333;
    background: #f0f0f0;
}

/* Language indicators */
.language.en {
    color: #2196f3;
    font-weight: bold;
}

.language.es {
    color: #f44336;
    font-weight: bold;
}

.language.fr {
    color: #4caf50;
    font-weight: bold;
}

.language.de {
    color: #ff9800;
    font-weight: bold;
}

/* Theme indicators */
.themes {
    position: relative;
}

.themes::before {
    content: "🏷️ ";
    margin-right: 0.25rem;
}

/* Date indicators */
.date {
    position: relative;
}

.date::before {
    content: "📅 ";
    margin-right: 0.25rem;
}

/* Fragment type indicators */
.fragment-type {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.5rem;
}

.fragment-type.poetry {
    background: #e3f2fd;
    color: #1976d2;
}

.fragment-type.reflexiones {
    background: #f3e5f5;
    color: #7b1fa2;
}

.fragment-type.famous_last_words {
    background: #fff3e0;
    color: #f57c00;
}

/* Hover effects for interactive elements */
.fragment-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Focus states for accessibility */
.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.nav-link:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .main-nav,
    .fragment-controls,
    .site-footer {
        display: none;
    }
    
    .fragment-container {
        padding: 0;
    }
    
    .fragment-content {
        box-shadow: none;
        border: 1px solid #000;
    }
}