/* Global Styles */
:root {
    --primary-color: #ffc107;
    --secondary-color: #adeef6;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --background-gradient-light: linear-gradient(135deg, #ffffff 0%, #adeef6 100%);
    --background: 45 40% 98%;
    --foreground: 0 0% 11%;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --border-radius: 15px;
}

body {
    /*background: var(--background-gradient);*/
    /*background: var(--background-gradient-light);*/
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
header {
    margin: 0px;
}

header h1 {
    color: #333;
    font-weight: 700;
}

header img {
    backdrop-filter: blur(10px);
    /*border-radius: var(--border-radius);*/
    box-shadow: var(--card-shadow);
}

.title {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin: 20px;
}

.rounded-b-3xl {
    border-bottom-right-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
}

.overflow-hidden {
    overflow: hidden;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-48 {
    height: 12rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .md\:h-64 {
        height: 16rem;
    }
}

.object-cover {
    object-fit: cover;
}

.jump-img {
    background-image: url("silhouettes-people-jumping-sunset.jpg");
    /*background-size: contain;*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.jump-img::after {
  content: "";
  position: absolute;
  inset: 0;               /* fills the div */
  background: rgba(255, 255, 255, 0.8); /* 70% transparent black layer */
  z-index: 1;  
}
.jump-img > * {
  position: relative;
  z-index: 2;                       /* ensures content is ABOVE overlay */
}

.language-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    transition: all 0.3s ease;
}

.language-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .language-btn {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 10px;
    }
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    /*
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    */
}

/* Date Card */
.date-card .card-body {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: var(--border-radius);
}

/* Joke Card */
.joke-card {
    min-height: 400px;
}

.joke-card .card-header {
    background: linear-gradient(45deg, var(--primary-color), #ffb347);
    color: #333;
    font-weight: 600;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

#joke-text {
    color: #333;
    font-style: italic;
    line-height: 1.6;
    margin: 20px 0;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    /*border-left: 4px solid var(--primary-color);*/
}

#punchline-container {
    animation: fadeInUp 0.5s ease;
}

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

.alert-success {
    /*background: linear-gradient(45deg, var(--secondary-color), #20c997);*/
    background: rgba(102, 126, 234, 0.05);
    border: none;
    color: #333;
}

#punchline-text {
    font-weight: 600;
    font-size: 1.2rem;
}

/* Navigation Card */
.navigation-card .card-header {
    background: linear-gradient(45deg, #20c997, var(--secondary-color));
    color: white;
}

/* Button Styles */
.btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-punchline {
    /*background: linear-gradient(45deg, var(--primary-color), #ffb347);
    border: none;*/
    border-color: #ffb347;
    background-color: white;
    color: #333;
}

.btn-punchline:hover {
    background: linear-gradient(45deg, #e0a800, #ff9500);
    border-color: #e0a800;
    color: #333;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
}

.btn-success {
    background: linear-gradient(45deg, var(--secondary-color), #20c997);
    border: none;
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Loading Animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Error Styles */
.alert-danger {
    background: linear-gradient(45deg, #dc3545, #e74c3c);
    border: none;
    color: white;
}

/* Footer Styles */
footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    margin: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    
    header, footer {
        margin: 10px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    #joke-text {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    #joke-text {
        font-size: 1rem;
        padding: 15px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        border-radius: 25px !important;
        margin-bottom: 5px;
    }
}

/* Animation for joke reveal */
#joke-content {
    animation: slideIn 0.6s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover effects for interactive elements */
.card-header:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 193, 7, 0.8);
}
