@tailwind base;
@tailwind components;
@tailwind utilities;

body {
    font-family: 'Lato', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #b45309;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #92400e;
}

/* Animation for hero section */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    animation: fadeIn 1s ease-out forwards;
}
/* Services section */
#services .flex > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services .flex > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}
/* Language selector dropdown */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: #1a1a1a;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.language-selector:hover .language-dropdown {
    display: block;
}

.language-option {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.language-option:hover {
    background-color: #b45309;
}

/* Form input focus styles */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.3);
}
/* Blog Section */
#blog {
    scroll-margin-top: 100px;
}

/* Ensure blog buttons are clickable */
[data-category] {
    cursor: pointer;
    user-select: none;
}

[data-category-content] {
    transition: opacity 0.3s ease;
}
/* Blog Cards */
#pasiones .bg-white:hover {
    transform: translateY(-5px);
}

/* Hover effect for subtitle */
.hovered-element {
    transition: all 0.3s ease;
}
.hovered-element {
    transition: all 0.3s ease;
    color: #978a8a;
}

.hovered-element:hover {
    color: #ff6f00;
    transform: scale(1.03);
}
/* Category Buttons */
[data-category] {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(224, 207, 207, 0.05);
    border-radius: 9999px;
    padding: 0.7rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    border: 1px solid transparent;
    color: #6e727a;
}

[data-category] svg {
    color: #52555a;
    stroke: #6b7280;
}
[data-category]:hover:not(.active-category) {
    background-color: #f3f4f6 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-color: rgba(180, 83, 9, 0.1);
    color: #656a73;
}
.active-category {
    background-color: #b45309 !important;
    color: white !important;
    box-shadow: 0 4px 6px rgba(219, 211, 205, 0.2);
}

.active-category svg {
    color: white !important;
    stroke: white !important;
}
[data-category] i {
    width: 16px;
    height: 16px;
    stroke-width: 2.5px;
}
/* Category Content */
[data-category-content] {
    display: none;
    animation: fadeIn 0.5s ease-out;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

[data-category-content="mitologia"] {
    display: block;
}

/* Category buttons container */
#blog .max-w-6xl .flex {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
