/**
 * K.A.T.S. Special Kneads - Modern Stylesheet
 * Built on Bootstrap 5
 * @modernized 2026
 */

/* ================================
   CSS Custom Properties (Colors)
   ================================ */
:root {
    --kats-primary: #2c7a7b;
    --kats-primary-dark: #234e52;
    --kats-secondary: #ed8936;
    --kats-secondary-dark: #c05621;
    --kats-accent: #e53e3e;
    --kats-light: #f7fafc;
    --kats-dark: #2d3748;
    --kats-gray: #718096;
    --kats-border: #e2e8f0;
}

/* ================================
   Base Styles
   ================================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--kats-dark);
    background-color: var(--kats-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--kats-dark);
}

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

a:hover {
    color: var(--kats-primary-dark);
}

/* ================================
   Bootstrap Overrides
   ================================ */
.btn-primary {
    background-color: var(--kats-primary);
    border-color: var(--kats-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--kats-primary-dark);
    border-color: var(--kats-primary-dark);
}

.btn-secondary {
    background-color: var(--kats-secondary);
    border-color: var(--kats-secondary);
    color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--kats-secondary-dark);
    border-color: var(--kats-secondary-dark);
    color: white;
}

.btn-outline-primary {
    color: var(--kats-primary);
    border-color: var(--kats-primary);
}

.btn-outline-primary:hover {
    background-color: var(--kats-primary);
    border-color: var(--kats-primary);
    color: white;
}

.btn-donate {
    background-color: var(--kats-accent);
    border-color: var(--kats-accent);
    color: white;
}

.btn-donate:hover {
    background-color: #c53030;
    border-color: #c53030;
    color: white;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: var(--kats-primary);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    border: none;
    padding: 1rem 1.25rem;
}

/* ================================
   Navigation
   ================================ */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 1030;
}

.navbar-brand {
    position: relative;
    z-index: 1031;
}

.navbar-brand::before {
    content: '';
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 225px;  /* wider than tall for oval shape */
    height: 150px; /* logo is ~120px tall, +10px (5px each side) */
    background-color: white;
    border-radius: 50%;
    z-index: -1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
    max-height: 120px;
    width: auto;
    margin-top: -10px;
    margin-bottom: -40px;
    position: relative;
    z-index: 1;
}

.navbar-nav .nav-link {
    color: var(--kats-dark);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--kats-primary);
    background-color: rgba(44, 122, 123, 0.1);
}

.navbar .btn-donate {
    margin-left: 1rem;
}

/* ================================
   Hero Carousel
   ================================ */
.hero-carousel {
    position: relative;
    max-height: 500px;
    overflow: hidden;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 4rem 0 3rem;
    text-align: center;
    color: white;
}

.hero-overlay h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.hero-overlay .lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-overlay .btn {
    margin: 0.25rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
}

/* ================================
   Section Titles
   ================================ */
.section-title {
    color: var(--kats-primary);
    font-size: 1.75rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--kats-secondary);
    border-radius: 2px;
}

.page-header {
    background-color: var(--kats-primary);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: white;
    margin: 0;
}

/* ================================
   Article/News Cards
   ================================ */
.news-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-card .card-title {
    color: var(--kats-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.news-card .card-title a {
    color: var(--kats-primary);
}

.news-card .card-title a:hover {
    color: var(--kats-primary-dark);
    text-decoration: underline;
}

.news-card .meta {
    color: var(--kats-gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.news-card .meta .edited {
    color: var(--kats-accent);
}

/* ================================
   Events
   ================================ */
.event-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--kats-border);
}

.event-item:last-child {
    border-bottom: none;
}

.event-item .event-title {
    color: var(--kats-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.event-item .event-date {
    color: var(--kats-gray);
    font-size: 0.875rem;
}

.event-item .event-fee {
    display: inline-block;
    background-color: var(--kats-secondary);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ================================
   Animal Gallery
   ================================ */
.animal-card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.animal-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.animal-card:hover img {
    transform: scale(1.05);
}

.animal-card .card-body {
    text-align: center;
}

.animal-card .animal-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--kats-primary);
    margin-bottom: 0.25rem;
}

.animal-card .animal-info {
    color: var(--kats-gray);
    font-size: 0.9rem;
}

/* ================================
   Individual Animal Page
   ================================ */
.animal-detail-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.animal-detail-image img {
    width: 100%;
    height: auto;
}

.animal-detail-info {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.animal-detail-info h1 {
    color: var(--kats-primary);
    margin-bottom: 1.5rem;
}

.animal-detail-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--kats-border);
}

.animal-detail-info .info-row:last-child {
    border-bottom: none;
}

.animal-detail-info .info-label {
    font-weight: 600;
    color: var(--kats-gray);
}

.animal-detail-info .adoption-fee {
    font-size: 1.5rem;
    color: var(--kats-primary);
    font-weight: 700;
}

.special-needs-box {
    background: linear-gradient(135deg, var(--kats-secondary), #f6ad55);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.special-needs-box h3 {
    color: white;
}

/* ================================
   Donation Page
   ================================ */
.donate-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.donate-card .icon {
    font-size: 3rem;
    color: var(--kats-primary);
    margin-bottom: 1rem;
}

.donate-card h3 {
    color: var(--kats-primary);
}

/* ================================
   Footer
   ================================ */
footer {
    background-color: var(--kats-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: white;
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: background-color 0.2s ease;
}

footer .social-links a:hover {
    background-color: var(--kats-primary);
}

/* ================================
   Media Articles Table
   ================================ */
.articles-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.articles-table thead {
    background-color: var(--kats-primary);
    color: white;
}

.articles-table th {
    padding: 1rem;
    font-weight: 600;
}

.articles-table td {
    padding: 1rem;
    vertical-align: middle;
}

.articles-table tbody tr:nth-child(even) {
    background-color: var(--kats-light);
}

.articles-table tbody tr:hover {
    background-color: rgba(44, 122, 123, 0.05);
}

/* ================================
   Print Styles - Hide for Screen
   ================================ */
.print-only {
    display: none;
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 991.98px) {
    .hero-overlay h1 {
        font-size: 2rem;
    }

    .hero-overlay .lead {
        font-size: 1rem;
    }

    .hero-carousel .carousel-item img {
        height: 350px;
    }

    .navbar-brand img {
        max-height: 80px;
        margin-top: -5px;
        margin-bottom: -25px;
    }

    .navbar-brand::before {
        width: 100px;  /* wider than tall for oval shape */
        height: 90px;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel .carousel-item img {
        height: 250px;
    }

    .hero-overlay {
        padding: 2rem 0 1.5rem;
    }

    .hero-overlay h1 {
        font-size: 1.5rem;
    }

    .hero-overlay .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .animal-card img {
        height: 200px;
    }
}

/* ================================
   Legacy Class Support
   ================================ */
div.mainstory {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

span.storytitle {
    font-size: 1.5rem;
    font-weight: 600;
}

span.storytitle a {
    color: var(--kats-primary);
}

span.storytitle a:hover {
    text-decoration: underline;
}

span.author {
    color: var(--kats-gray);
    font-size: 0.875rem;
    font-style: italic;
}

span.editdate {
    color: var(--kats-accent);
    font-size: 0.875rem;
    font-style: italic;
}

div.story {
    margin-top: 1rem;
    line-height: 1.7;
}

span.arttitle {
    color: var(--kats-primary);
    font-weight: 600;
    font-size: 1rem;
}

span.artdate {
    color: var(--kats-gray);
    font-size: 0.875rem;
}
