/**
 * Main Stylesheet
 *
 * @package XayDungKhangPhuc
 * @since 1.0.0
 */

:root {
    --primary: #c97a3a;
    --secondary: #2a2a2a;
    --background: #f8f8f8;
    --foreground: #1a1a1a;
    --muted-foreground: #666666;
    --border: #e5e5e5;
}

* {
    outline-color: rgba(201, 122, 58, 0.5);
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-muted-foreground { color: var(--muted-foreground) !important; }
.bg-muted { background-color: #f0f0f0 !important; }
.text-foreground { color: var(--foreground) !important; }
.bg-foreground { background-color: var(--foreground) !important; }
.border-border { border-color: var(--border) !important; }

.underline-animate {
    position: relative;
    transition: color 300ms;
}

.underline-animate::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c97a3a, #2a2a2a);
    transition: width 300ms;
}

.underline-animate:hover::after {
    width: 100%;
}

.mobile-menu {
    animation: slideInDown 300ms ease-in-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
}

.fade-in-up.visible {
    animation: fadeInUp 600ms ease-out forwards;
}

.slide-in-left.visible {
    animation: slideInLeft 600ms ease-out forwards;
}

.slide-in-right.visible {
    animation: slideInRight 600ms ease-out forwards;
}

.scale-in.visible {
    animation: scaleIn 600ms ease-out forwards;
}

/* WordPress specific styles */
.prose {
    color: var(--foreground);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: var(--foreground);
    font-weight: bold;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--secondary);
}

.prose img {
    border-radius: 0.5rem;
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-author {
    font-weight: bold;
    color: var(--primary);
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

/* Form styles */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
textarea,
select {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color 300ms;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Logo styles */
.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.custom-logo-wrapper {
    display: flex;
    align-items: center;
    max-height: 64px;
    max-width: 200px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.custom-logo-wrapper a {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.custom-logo-wrapper img,
.custom-logo-wrapper a img {
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
    display: block;
    vertical-align: middle;
}

.logo-icon {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.logo-text {
    flex-shrink: 0;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prose {
        font-size: 1rem;
    }
    
    .custom-logo-wrapper {
        max-width: 150px;
    }
    
    .custom-logo-wrapper img {
        max-height: 48px;
    }
}
