* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.go-green {
    color: #00d977;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(0, 217, 119, 0.3);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.4rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 20px;
    display: inline-block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.title-line {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.title-main {
    display: block;
    font-size: 5rem;
    background: linear-gradient(45deg, #ffe66d, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--dark-color);
}

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

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

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

.floating-pets {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.pet-emoji {
    position: absolute;
    font-size: 4rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

.pet-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.pet-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.pet-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.pet-4 {
    top: 30%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Sections */
.section {
    padding: 80px 0;
    scroll-margin-top: 80px;
}

.section-alt {
    background: white;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Forum AI Search Box */
.forum-ai-search-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 2rem 0 3rem 0;
    width: 100%;
}

.forum-ai-search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    max-width: 600px;
    width: 100%;
}

.forum-ai-search-box:focus-within {
    border-color: #00d977;
    box-shadow: 0 4px 25px rgba(0, 217, 119, 0.3);
    transform: translateY(-2px);
}

.forum-ai-search-box .search-icon {
    font-size: 1.3rem;
    margin-right: 12px;
    color: var(--text-color);
    opacity: 0.7;
}

.forum-ai-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: transparent;
}

.forum-ai-search-input::placeholder {
    color: #999;
}

.forum-ai-search-btn {
    background: linear-gradient(135deg, #00d977 0%, #00b865 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 10px rgba(0, 217, 119, 0.3);
    margin-left: 10px;
}

.forum-ai-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 217, 119, 0.4);
}

.forum-ai-search-btn:active {
    transform: translateY(0);
}

.forum-ai-search-results {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 20px;
    margin-top: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-height: 450px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    padding: 20px;
    width: 100%;
    max-width: 600px;
}

.forum-ai-search-results.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.forum-ai-result-item {
    padding: 18px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
    margin-bottom: 8px;
}

.forum-ai-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.forum-ai-result-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.forum-ai-result-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.forum-ai-result-content {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.forum-ai-result-category {
    display: inline-block;
    background: linear-gradient(135deg, #00d977 0%, #00b865 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

.forum-ai-no-results {
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 1rem;
}

/* Pet Grid */
.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pet-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.pet-card:hover::before {
    transform: scaleX(1);
}

.pet-emoji-large {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.pet-name {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.pet-breed {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pet-fact {
    text-align: center;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Games Section */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background: var(--gradient-3);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-card p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.feature p {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-icons {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.footer-icons span {
    margin: 0 10px;
    animation: bounce 2s infinite;
    display: inline-block;
}

.footer-icons span:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-icons span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Game Styles */
.game-area {
    text-align: center;
    padding: 2rem;
}

.game-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.match-card {
    aspect-ratio: 1;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.match-card.flipped {
    background: white;
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
}

.match-card.matched {
    opacity: 0.5;
    cursor: default;
}

.quiz-question {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quiz-option:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(10px);
}

.quiz-option.correct {
    background: #4caf50;
    color: white;
}

.quiz-option.wrong {
    background: #f44336;
    color: white;
}

.pet-generator-result {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-2);
    border-radius: 15px;
    color: white;
    margin: 2rem 0;
}

.generated-pet {
    font-size: 5rem;
    margin: 1rem 0;
    animation: bounce 1s ease;
}

.generated-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-display {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

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

.btn-forum:hover {
    background: #3ab8b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

/* Forum Styles */
.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.forum-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #ff6b35;
    background: white;
    color: #ff6b35;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn.active {
    padding: 10px 24px;
}

.filter-btn[data-category="dogs"] {
    padding: 10px 24px;
}

.filter-btn[data-category="cats"] {
    padding: 10px 24px;
}

.filter-btn:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.filter-btn.active {
    background: #ff6b35;
    color: white;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.forum-title-layout {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.forum-image-wrapper {
    width: 15%;
    min-width: 15%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pet-of-day-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.forum-title-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    background: linear-gradient(135deg, #00d977 0%, #00b865 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.forum-image-wrapper:first-child .forum-title-image {
    position: relative;
    top: 100px;
}

.forum-image-wrapper:last-child .forum-title-image {
    position: relative;
    top: 100px;
}

.forum-image-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.forum-title-content {
    flex: 1;
}

.forum-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.forum-left-column {
    width: 30%;
    min-width: 30%;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 120px;
}

.forum-finder-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.zip-code-input {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.zip-code-input::placeholder {
    color: #999;
}

.zip-code-input:hover {
    border-color: var(--secondary-color);
}

.zip-code-input:focus {
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.finder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.finder-icon:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.cartoon-checkbox {
    position: relative;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.checkbox-box {
    width: 100%;
    height: 100%;
    border: 4px solid #00d977;
    border-radius: 8px;
    background: white;
    box-shadow: 
        0 0 0 2px rgba(0, 217, 119, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(0, 217, 119, 0.1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.checkbox-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 217, 119, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.finder-icon:hover .checkbox-box {
    border-color: #00e685;
    box-shadow: 
        0 0 0 3px rgba(0, 217, 119, 0.3),
        0 6px 12px rgba(0, 217, 119, 0.4),
        inset 0 2px 4px rgba(0, 217, 119, 0.15);
    transform: scale(1.05) rotate(2deg);
}

.finder-icon:hover .checkbox-box::before {
    top: 50%;
    left: 50%;
}

.checkbox-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #00d977;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 
        0 2px 4px rgba(0, 217, 119, 0.3),
        0 0 8px rgba(0, 217, 119, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
}

.finder-icon:hover .checkbox-check {
    transform: translate(-50%, -50%) scale(1) rotate(5deg);
    color: #00e685;
}

.finder-icon:active .checkbox-box {
    transform: scale(0.95) rotate(-2deg);
}

.finder-icon:active .checkbox-check {
    transform: translate(-50%, -50%) scale(0.9) rotate(-5deg);
}

.finder-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cool-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d977 0%, #00b865 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 900;
    margin-left: 0.5rem;
    box-shadow: 
        0 4px 12px rgba(0, 217, 119, 0.4),
        0 0 0 3px rgba(0, 217, 119, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    position: relative;
    animation: checkmarkPulse 2s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cool-checkmark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.cool-checkmark:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 6px 16px rgba(0, 217, 119, 0.6),
        0 0 0 4px rgba(0, 217, 119, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.cool-checkmark:hover::before {
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
}

@keyframes checkmarkPulse {
    0%, 100% {
        box-shadow: 
            0 4px 12px rgba(0, 217, 119, 0.4),
            0 0 0 3px rgba(0, 217, 119, 0.1),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 6px 16px rgba(0, 217, 119, 0.6),
            0 0 0 5px rgba(0, 217, 119, 0.15),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
}

.mobile-services-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.service-btn:hover::before {
    left: 100%;
}

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

.service-btn:active {
    transform: translateY(0);
}

.service-btn-grooming,
.service-btn-walkers,
.service-btn-vets {
    background: linear-gradient(to right, #ffb366 0%, #ff8c42 30%, #ff6b35 70%, #e64a19 100%);
}

.service-btn-grooming:hover,
.service-btn-walkers:hover,
.service-btn-vets:hover {
    background: linear-gradient(to right, #ffc285 0%, #ff9d5c 30%, #ff7b4a 70%, #ff5722 100%);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.service-btn.active {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.forum-column-dropdown {
    margin-bottom: 1.5rem;
}

.forum-dropdown-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234eccc9' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.forum-dropdown-select:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.2);
}

.forum-dropdown-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.finder-results {
    margin-top: 1.5rem;
    display: none;
}

.finder-results.show {
    display: block;
}

.finder-results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.finder-results-table thead {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #5fb3b0 100%);
    color: white;
}

.finder-results-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.finder-results-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.finder-results-table tbody tr:hover {
    background: #f8f9fa;
}

.finder-results-table tbody tr:last-child td {
    border-bottom: none;
}

.finder-results-header {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.finder-results-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.finder-results-error {
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 0.9rem;
}

.forum-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.forum-post {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid var(--primary-color);
}

.forum-post:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    flex: 1;
}

.post-category {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.post-category.dogs {
    background: #ffebee;
    color: #c62828;
}

.post-category.cats {
    background: #e3f2fd;
    color: #1565c0;
}

.post-category.general {
    background: #f3e5f5;
    color: #6a1b9a;
}

.post-category.advice {
    background: #fff3e0;
    color: #e65100;
}

.post-content {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.8rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: #999;
    font-size: 0.85rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Post Detail */
.post-detail {
    padding: 1rem 0;
}

.post-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.post-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.post-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    white-space: pre-wrap;
}

.comments-section {
    margin-top: 2rem;
}

.comments-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.comment-form {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.comment-date {
    color: #999;
    font-size: 0.85rem;
}

.comment-content {
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Auth Forms */
.auth-form, .post-form {
    padding: 1rem;
}

.auth-form h2, .post-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.auth-form input, .post-form input, .post-form select, .post-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.post-form textarea {
    resize: vertical;
    min-height: 150px;
}

.modal-large {
    max-width: 800px;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-main {
        font-size: 3rem;
    }

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

    .pet-grid {
        grid-template-columns: 1fr;
    }

    .match-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .user-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar .container {
        flex-wrap: wrap;
        padding: 1rem 15px;
    }


    .forum-header {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-filters {
        justify-content: center;
    }

    .forum-layout {
        flex-direction: column;
    }

    .forum-left-column {
        width: 100%;
        min-width: unset;
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .finder-results-table {
        font-size: 0.8rem;
    }

    .finder-results-table th,
    .finder-results-table td {
        padding: 8px 10px;
    }

    .finder-results-table th {
        font-size: 0.75rem;
    }

    .post-header {
        flex-direction: column;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .forum-ai-search-container {
        margin: 1.5rem 0 2rem 0;
        padding: 0 10px;
    }

    .forum-ai-search-box {
        padding: 10px 15px;
        max-width: 100%;
    }

    .forum-ai-search-input {
        font-size: 0.9rem;
    }

    .forum-ai-search-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
        margin-left: 8px;
    }

    .forum-ai-search-results {
        max-width: 95%;
        padding: 15px;
    }

    .forum-ai-result-item {
        padding: 15px;
    }

    .forum-ai-result-title {
        font-size: 1rem;
    }

    .forum-ai-result-content {
        font-size: 0.9rem;
    }
}

