/* Familiar Dog App Styles */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #6B46C1; /* Deep purple - mystical but professional */
    --secondary-color: #EC4899; /* Soft pink accent */
    --accent-color: #F59E0B; /* Warm amber */
    --background-light: #F8FAFC;
    --background-dark: #1E1B4B;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-light: rgba(107, 70, 193, 0.1);
    --shadow-medium: rgba(107, 70, 193, 0.2);
    --gradient-primary: linear-gradient(135deg, #6B46C1 0%, #EC4899 100%);
    --gradient-mystical: linear-gradient(135deg, #1E1B4B 0%, #6B46C1 50%, #EC4899 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo-icon {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: mysticalGlow 3s ease-in-out infinite alternate;
}

@keyframes mysticalGlow {
    0% { filter: drop-shadow(0 0 5px rgba(107, 70, 193, 0.5)); }
    100% { filter: drop-shadow(0 0 15px rgba(236, 72, 153, 0.5)); }
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="75" cy="40" r="1" fill="white" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="4s" repeatCount="indefinite"/></circle><circle cx="50" cy="80" r="1" fill="white" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="5s" repeatCount="indefinite"/></circle></svg>') repeat;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(45deg, #F59E0B, #EC4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.mystical-circle {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    animation: floatAnimation 6s ease-in-out infinite;
}

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

.hero-icon {
    font-size: 4rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Button Styles */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Upload Section */
.upload-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.drop-zone {
    border: 3px dashed var(--primary-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    background: rgba(107, 70, 193, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--secondary-color);
    background: rgba(236, 72, 153, 0.05);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.drop-zone h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.browse-text {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.preview-container {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 40px var(--shadow-light);
}

.preview-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Loading Animation */
.loading-container {
    text-align: center;
    padding: 3rem;
}

.mystical-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    animation: spin 2s linear infinite;
}

.mystical-loader i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.loading-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Results Section */
.results-section {
    padding: 4rem 0;
    background: white;
}

.results-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 15px 50px var(--shadow-light);
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: var(--background-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-light);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: var(--gradient-mystical);
    color: var(--text-light);
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Ad Spaces */
.ad-space {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
    color: #6c757d;
}

.ad-space-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    z-index: 100;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        min-width: auto;
    }

    .preview-actions {
        flex-direction: column;
    }

    .ad-space-sidebar {
        display: none;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}
/* Additional styles for results display */

.result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.overall-mood {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.confidence-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(107, 70, 193, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
}

.interpretations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.interpretation-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(107, 70, 193, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.interpretation-card:hover {
    transform: translateY(-5px);
}

.interpretation-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.interpretation-category {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.interpretation-meaning {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.interpretation-advice {
    background: rgba(245, 158, 11, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-color);
}

.interpretation-advice h5 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-suggestions {
    background: rgba(236, 72, 153, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--secondary-color);
}

.product-suggestions h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(107, 70, 193, 0.3);
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.results-footer {
    text-align: center;
    padding: 1rem;
    background: rgba(107, 70, 193, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(107, 70, 193, 0.1);
}

.results-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Mobile responsive adjustments for results */
@media (max-width: 768px) {
    .interpretations-grid {
        grid-template-columns: 1fr;
    }

    .results-actions {
        flex-direction: column;
    }

    .overall-mood {
        font-size: 1.5rem;
    }

    .results-footer p {
        flex-direction: column;
        text-align: center;
    }
}

/* Animation for results appearing */
.interpretation-card {
    animation: slideInUp 0.6s ease-out;
}

.interpretation-card:nth-child(1) { animation-delay: 0.1s; }
.interpretation-card:nth-child(2) { animation-delay: 0.2s; }
.interpretation-card:nth-child(3) { animation-delay: 0.3s; }

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

/* Disclaimer Page Styles */

.disclaimer-section {
    padding: 8rem 2rem 4rem;
    background: var(--background-light);
    min-height: 100vh;
}

.disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px var(--shadow-light);
}

.disclaimer-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.disclaimer-intro {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.disclaimer-item {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(107, 70, 193, 0.02);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.disclaimer-item h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.disclaimer-item h2 i {
    font-size: 1.1rem;
}

.disclaimer-item p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.disclaimer-item ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.disclaimer-item li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.emergency-notice {
    background: rgba(245, 158, 11, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 500;
}

.disclaimer-footer {
    background: rgba(107, 70, 193, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
}

.disclaimer-footer p {
    margin-bottom: 0.5rem;
}

.back-to-app {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .disclaimer-section {
        padding: 6rem 1rem 4rem;
    }

    .disclaimer-content {
        padding: 2rem;
    }

    .disclaimer-content h1 {
        font-size: 2rem;
    }

    .disclaimer-item h2 {
        font-size: 1.1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
