/* Kilmainham Gaol Museum - Historic Prison Theme */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Historic Prison Color Palette */
    --stone-dark: #1a1a1a;
    --stone-gray: #2d2d2d;
    --iron-gray: #4a4a4a;
    --rust-orange: #b45309;
    --aged-gold: #d4a574;
    --parchment: #f5f0e8;
    --moss-green: #365314;
    --cell-green: #4d7c0f;
    --blood-red: #991b1b;
    --candle-light: #fef3c7;
    
    /* Gradients */
    --prison-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    --iron-gradient: linear-gradient(180deg, #4a4a4a 0%, #2d2d2d 100%);
    --rust-gradient: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    
    /* Shadows */
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(212, 165, 116, 0.3);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', Georgia, serif;
    color: var(--stone-dark);
    line-height: 1.8;
    background: var(--parchment);
    font-size: 1.1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.section-title {
    color: var(--stone-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--rust-gradient);
}

/* Navigation */
.navbar {
    background: var(--stone-dark) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
    border-bottom: 2px solid var(--iron-gray);
}

.navbar-brand {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--parchment) !important;
    letter-spacing: 1px;
}

.navbar-brand i {
    color: var(--aged-gold);
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: rgba(245, 240, 232, 0.85) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.15rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--aged-gold) !important;
}

.nav-link.active {
    color: var(--aged-gold) !important;
    border-bottom: 2px solid var(--aged-gold);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.9)),
                url('../images/cell-block.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(0, 0, 0, 0.1) 100px,
            rgba(0, 0, 0, 0.1) 102px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(0, 0, 0, 0.1) 100px,
            rgba(0, 0, 0, 0.1) 102px
        );
    pointer-events: none;
    opacity: 0.5;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.hero-overlay {
    display: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--parchment);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-section .lead {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--aged-gold);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Buttons */
.btn {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    transition: all 0.4s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--rust-gradient);
    border: none;
    color: var(--parchment);
    box-shadow: var(--shadow-dark);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-outline-primary {
    border: 2px solid var(--rust-orange);
    color: var(--rust-orange);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--rust-orange);
    color: var(--parchment);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--parchment);
    color: var(--stone-dark);
    border: none;
}

.btn-light:hover {
    background: var(--candle-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Cards */
.card {
    background: white;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-dark);
    transition: all 0.4s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--stone-dark);
}

.card-title i {
    color: var(--rust-orange);
}

/* History Cards */
.history-card {
    background: linear-gradient(145deg, white 0%, var(--parchment) 100%);
    border-left: 4px solid var(--rust-orange);
}

.history-card .card-title {
    color: var(--moss-green);
}

/* Timeline styling */
.timeline-year {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--rust-orange);
}

/* Sections */
section {
    position: relative;
}

.bg-light {
    background: linear-gradient(180deg, var(--parchment) 0%, #ebe5db 100%) !important;
}

.bg-primary {
    background: var(--prison-gradient) !important;
}

.bg-primary h2,
.bg-primary h3,
.bg-primary p {
    color: var(--parchment);
}

.bg-primary .lead {
    color: var(--aged-gold);
}

/* Exhibition Section */
.exhibition-banner {
    background: var(--prison-gradient);
    border: 1px solid var(--iron-gray);
    position: relative;
    overflow: hidden;
}

.exhibition-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rust-gradient);
}

/* Forms */
.form-control,
.form-select {
    font-family: 'Crimson Text', serif;
    padding: 0.875rem 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    background: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--rust-orange);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
    outline: none;
}

.form-label {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--stone-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-check-input:checked {
    background-color: var(--rust-orange);
    border-color: var(--rust-orange);
}

/* Booking Form */
#bookingForm .card {
    border: none;
    background: white;
    box-shadow: var(--shadow-dark);
}

#bookingForm h3 {
    color: var(--stone-dark);
    border-bottom: 2px solid var(--rust-orange);
    padding-bottom: 1rem;
}

#bookingForm h5 {
    color: var(--moss-green);
    font-family: 'Cinzel', serif;
}

#total_tickets {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rust-orange);
}

/* Alerts */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    font-family: 'Crimson Text', serif;
}

.alert-info {
    background: linear-gradient(135deg, var(--candle-light) 0%, #fef9c3 100%);
    color: var(--stone-dark);
    border-left: 4px solid var(--aged-gold);
}

.alert-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: var(--moss-green);
    border-left: 4px solid var(--cell-green);
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--blood-red);
    border-left: 4px solid var(--blood-red);
}

/* Footer */
footer {
    background: var(--stone-dark);
    color: rgba(245, 240, 232, 0.8);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rust-gradient);
}

footer h5 {
    font-family: 'Cinzel', serif;
    color: var(--parchment);
    margin-bottom: 1.25rem;
    letter-spacing: 1px;
}

footer a {
    color: rgba(245, 240, 232, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--aged-gold) !important;
    text-decoration: none !important;
}

footer hr {
    border-color: var(--iron-gray);
}

/* Gallery */
.gallery img {
    border-radius: var(--radius-sm);
    transition: all 0.4s ease;
    filter: sepia(10%);
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-heavy);
    filter: sepia(0%);
}

/* Visit Info Icons */
.visit-info-icon {
    width: 60px;
    height: 60px;
    background: var(--rust-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--parchment);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Sticky Sidebar */
.sticky-top {
    top: 100px !important;
}

.sticky-top.card {
    background: linear-gradient(145deg, white 0%, var(--parchment) 100%);
    border: 1px solid rgba(180, 83, 9, 0.2);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

.img-fluid.rounded {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--parchment);
}

::-webkit-scrollbar-thumb {
    background: var(--iron-gray);
    border-radius: 6px;
    border: 3px solid var(--parchment);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--stone-dark);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--rust-orange);
    outline-offset: 3px;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Decorative Elements */
.prison-bars {
    position: relative;
}

.prison-bars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 30px,
        rgba(0, 0, 0, 0.05) 30px,
        rgba(0, 0, 0, 0.05) 32px
    );
    pointer-events: none;
}

/* Quote styling */
.blockquote {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--stone-gray);
    border-left: 4px solid var(--rust-orange);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.blockquote-footer {
    font-family: 'Cinzel', serif;
    font-style: normal;
    color: var(--rust-orange);
}

/* Mobile Optimizations */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--stone-dark);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }
    
    section.py-5 {
        padding: 3rem 0 !important;
    }
    
    h2 {
        font-size: 1.6rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        background: white !important;
        color: black !important;
    }
}

/* Sepia filter for historic feel */
.historic-image {
    filter: sepia(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.historic-image:hover {
    filter: sepia(0%) contrast(1);
}

/* Cell door pattern */
.cell-pattern {
    background-image: 
        linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(74, 74, 74, 0.3) 50px,
            rgba(74, 74, 74, 0.3) 52px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(74, 74, 74, 0.3) 50px,
            rgba(74, 74, 74, 0.3) 52px
        );
}
