/* ====================================
   JR CANINES - VISUAL ENHANCEMENTS
   Refined polish layer
   ==================================== */

/* Enhanced smooth rendering */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    letter-spacing: -0.01em;
}

/* Enhanced typography */
h1, h2, h3 {
    letter-spacing: -0.02em;
}

p {
    font-size: 1.0625rem;
}

/* Enhanced content containers */
.content-container {
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(255,255,255,0.9));
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(61,110,78,0.08);
    position: relative;
    overflow: hidden;
}

.content-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3d6e4e, #5a9370, #a67c52);
    opacity: 0.8;
}

.content-container::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(93,147,112,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.content-container > * {
    position: relative;
    z-index: 1;
}

.content-container h2:first-child {
    margin-top: 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(61,110,78,0.1);
    margin-bottom: 2rem;
}

/* Enhanced paragraphs trong content-container */
.content-container p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-container h3 {
    margin-top: 2.5rem;
    padding-left: 1rem;
    border-left: 4px solid #5a9370;
    color: #2a4d36;
}

/* Hover effect cho content-container */
.content-container:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive cho content-container */
@media (max-width: 768px) {
    .content-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .content-container h3 {
        margin-top: 2rem;
    }
}

/* Refined color enhancements */
:root {
    --enhanced-green: #3d6e4e;
    --enhanced-border: #efefef;
    --enhanced-shadow: rgba(0, 0, 0, 0.06);
}

/* Elevated header */
.site-header {
    background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.98));
    backdrop-filter: blur(10px);
    border-bottom-color: var(--enhanced-border);
}

/* Sophisticated hero */
.hero {
    background: linear-gradient(135deg, #2a4d36 0%, #3d6e4e 50%, #5a9370 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* Refined buttons with ripple effect */
.btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #a67c52, #c9a578);
    box-shadow: 0 4px 12px rgba(166,124,82,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(166,124,82,0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.5);
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(61,110,78,0.25);
}

/* Elegant cards with gradient accent */
.card {
    border-radius: 16px;
    border-color: var(--enhanced-border);
    box-shadow: 0 2px 8px var(--enhanced-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3d6e4e, #5a9370);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #7db094;
}

.card:hover::before {
    opacity: 1;
}

/* Enhanced stats with gradient numbers */
.stat-number {
    background: linear-gradient(135deg, #2a4d36, #5a9370);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-box {
    background: linear-gradient(135deg, #ffffff, #fafafa);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Refined donation tiers */
.donation-tier {
    border-radius: 16px;
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.donation-tier::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3d6e4e, #d4af7a);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.donation-tier:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.donation-tier:hover::before {
    transform: scaleX(1);
}

.tier-amount {
    background: linear-gradient(135deg, #a67c52, #d4af7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced navigation with underline animation */
.main-nav a {
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, #5a9370, #3d6e4e);
    border-radius: 2px;
    transition: transform 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Sophisticated FAQ accordion */
.faq-category-title {
    background: linear-gradient(135deg, #3d6e4e, #5a9370);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(61,110,78,0.2);
}

.faq-item {
    border-radius: 12px;
    border-color: var(--enhanced-border);
    box-shadow: 0 2px 8px var(--enhanced-shadow);
}

.faq-question:hover,
.faq-question.active {
    background: linear-gradient(to right, #5a9370, #7db094);
}

/* Enhanced testimonials */
.testimonial {
    background: linear-gradient(to right, #fafafa, #ffffff);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 12px var(--enhanced-shadow);
}

.testimonial:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateX(4px);
}

/* Elegant back-to-top button */
.back-to-top {
    background: linear-gradient(135deg, #3d6e4e, #5a9370);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2a4d36, #3d6e4e);
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

/* Enhanced forms */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(61,110,78,0.1);
}

.form-success {
    background: linear-gradient(to right, #d4edda, #e8f5e9);
    box-shadow: 0 4px 12px rgba(61,110,78,0.15);
}

/* Sophisticated footer */
.site-footer {
    background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
}

/* Tables */
th {
    background: linear-gradient(135deg, #3d6e4e, #5a9370);
}

/* Section enhancements */
.section-accent {
    background: linear-gradient(135deg, #2a4d36 0%, #3d6e4e 100%);
    position: relative;
}

.section-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.section-accent > * {
    position: relative;
    z-index: 1;
}

.section-gray {
    background: linear-gradient(to bottom, #fafafa, #f8f8f8);
}

/* Info boxes */
.info-box {
    background: linear-gradient(to right, #fafafa, #ffffff);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 12px var(--enhanced-shadow);
}

/* Fade-in animations for page elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.feature-box,
.donation-tier,
.stat-box {
    animation: fadeIn 0.6s ease both;
}

.card:nth-child(1), .donation-tier:nth-child(1), .stat-box:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2), .donation-tier:nth-child(2), .stat-box:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3), .donation-tier:nth-child(3), .stat-box:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4), .donation-tier:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Success message animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-success.active {
    animation: slideDown 0.4s ease;
}

/* Enhanced 404 error code */
.error-code {
    background: linear-gradient(135deg, #5a9370, #7db094);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Biến thể content-container cho các trang khác nhau */

/* Content container trong section-light */
.section-light .content-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(250,250,250,0.98));
}

/* Content container trong section-gray */
.section-gray .content-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
}

/* Content container trong section-accent */
.section-accent .content-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.25));
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.section-accent .content-container::before {
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6));
}

.section-accent .content-container h2,
.section-accent .content-container h3 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-accent .content-container p {
    color: rgba(255,255,255,0.95);
}

/* Ensure grid displays properly in section-accent */
.section-accent .grid {
    display: grid;
    gap: var(--spacing-lg);
}

.section-accent .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Testimonials in section-accent need proper visibility */
.section-accent .testimonial {
    background: white !important;
    opacity: 1;
    display: block;
}

.section-accent .testimonial-text {
    color: #2a2a2a !important;
}

.section-accent .testimonial-author {
    color: #666666 !important;
    font-weight: 600;
}

/* Subtle animation khi scroll vào view */
.content-container {
    animation: fadeInUp 0.8s ease both;
}

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

/* Stagger animation cho multiple content-containers */
.content-container:nth-of-type(1) { animation-delay: 0.1s; }
.content-container:nth-of-type(2) { animation-delay: 0.2s; }
.content-container:nth-of-type(3) { animation-delay: 0.3s; }

/* Enhanced lists trong content-container */
.content-container ul:not(.styled-list) {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-container ul:not(.styled-list) li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Enhanced blockquotes trong content-container */
.content-container blockquote {
    border-left: 4px solid #a67c52;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4a4a4a;
}

/* Read more / Expand effects */
.content-container.expanded {
    max-height: none;
}

/* Print styles */
@media print {
    .content-container {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
        padding: 1rem;
    }

    .content-container::before,
    .content-container::after {
        display: none;
    }
}
