/* Harry Potter Themed CSS for HogWoofs */

:root {
    --gryffindor-red: #740001;
    --gryffindor-gold: #D3A625;
    --slytherin-green: #1A472A;
    --slytherin-silver: #5D5D5D;
    --ravenclaw-blue: #0E1A40;
    --ravenclaw-bronze: #946B2D;
    --hufflepuff-yellow: #ECB939;
    --hufflepuff-black: #372E29;
    --dark-purple: #2C1810;
    --light-gold: #F4E4BC;
    --magical-blue: #4A90E2;
    --parchment: #F5F1E8;
}

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

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    color: var(--dark-purple);
    background: linear-gradient(135deg, var(--dark-purple) 0%, #4A2C2A 50%, var(--gryffindor-red) 100%);
    min-height: 100vh;
}

.magical-background {
    position: relative;
    min-height: 100vh;
}

.floating-sparks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-sparks::before,
.floating-sparks::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gryffindor-gold);
    border-radius: 50%;
    animation: sparkle 3s infinite;
}

.floating-sparks::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-sparks::after {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

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

/* Header */
.header {
    background: rgba(44, 24, 16, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--gryffindor-gold);
    box-shadow: 0 4px 20px rgba(211, 166, 37, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo i {
    font-size: 2.5rem;
    color: var(--gryffindor-gold);
    animation: paw-bounce 2s infinite;
}

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

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gryffindor-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--light-gold);
    font-style: italic;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--light-gold);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    background: var(--gryffindor-gold);
    color: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(211, 166, 37, 0.4);
}

/* Hero Section */
.hero {
    padding: 120px 2rem 4rem;
    text-align: center;
    background: linear-gradient(rgba(44, 24, 16, 0.7), rgba(44, 24, 16, 0.7)),
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200&h=600&fit=crop') center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: var(--gryffindor-gold);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
    animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
    from { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 20px rgba(211, 166, 37, 0.3); }
    to { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7), 0 0 30px rgba(211, 166, 37, 0.6); }
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--light-gold);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-dogs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-dog {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--gryffindor-gold);
    box-shadow: 0 8px 25px rgba(211, 166, 37, 0.4);
    transition: transform 0.3s ease;
}

.hero-dog:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Sections */
.section {
    padding: 4rem 2rem;
    position: relative;
}

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

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    text-align: center;
    color: var(--gryffindor-gold);
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--light-gold);
    line-height: 1.8;
}

.magical-features {
    display: grid;
    gap: 2rem;
}

.feature {
    background: rgba(211, 166, 37, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--gryffindor-gold);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(211, 166, 37, 0.3);
}

.feature i {
    font-size: 3rem;
    color: var(--gryffindor-gold);
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--gryffindor-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature p {
    color: var(--light-gold);
}

/* Founder Section */
.founder-section {
    background: linear-gradient(rgba(44, 24, 16, 0.9), rgba(44, 24, 16, 0.9)),
                url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?w=1200&h=400&fit=crop') center/cover;
}

.founder-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.founder-image {
    position: relative;
    text-align: center;
}

.founder-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 6px solid var(--gryffindor-gold);
    box-shadow: 0 15px 40px rgba(211, 166, 37, 0.4);
    transition: transform 0.3s ease;
}

.founder-img:hover {
    transform: scale(1.05);
}

.magical-frame {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    border: 3px solid var(--gryffindor-gold);
    border-radius: 50%;
    animation: frame-rotate 20s linear infinite;
}

@keyframes frame-rotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

.founder-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gryffindor-gold);
    margin-bottom: 0.5rem;
}

.founder-title {
    font-size: 1.2rem;
    color: var(--light-gold);
    font-style: italic;
    margin-bottom: 2rem;
}

.founder-text p {
    color: var(--light-gold);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.founder-quote {
    background: rgba(211, 166, 37, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--gryffindor-gold);
    margin-top: 2rem;
}

.founder-quote i {
    color: var(--gryffindor-gold);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.founder-quote p {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.founder-quote span {
    color: var(--gryffindor-gold);
    font-weight: 600;
}

/* Houses Section */
.houses-section {
    background: var(--parchment);
}

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

.house {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 3px solid transparent;
}

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

.house.gryffindog {
    border-color: var(--gryffindor-red);
}

.house.slytherin {
    border-color: var(--slytherin-green);
}

.house.ravenclaw {
    border-color: var(--ravenclaw-blue);
}

.house.hufflepuff {
    border-color: var(--hufflepuff-yellow);
}

.house-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.gryffindog .house-icon {
    background: linear-gradient(45deg, var(--gryffindor-red), var(--gryffindor-gold));
    color: white;
}

.slytherin .house-icon {
    background: linear-gradient(45deg, var(--slytherin-green), var(--slytherin-silver));
    color: white;
}

.ravenclaw .house-icon {
    background: linear-gradient(45deg, var(--ravenclaw-blue), var(--ravenclaw-bronze));
    color: white;
}

.hufflepuff .house-icon {
    background: linear-gradient(45deg, var(--hufflepuff-yellow), var(--hufflepuff-black));
    color: white;
}

.house h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-purple);
}

.house p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.house-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.house-traits span {
    background: var(--light-gold);
    color: var(--dark-purple);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Exam Section */
.exam-section {
    background: linear-gradient(rgba(44, 24, 16, 0.95), rgba(44, 24, 16, 0.95)),
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200&h=400&fit=crop') center/cover;
}

.exam-intro {
    text-align: center;
    color: var(--light-gold);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.exam-form {
    background: rgba(245, 241, 232, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.question-group {
    margin-bottom: 3rem;
}

.question-group h3 {
    font-family: 'Cinzel', serif;
    color: var(--gryffindor-red);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--gryffindor-gold);
    padding-bottom: 1rem;
}

.question {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--gryffindor-gold);
}

.question label {
    font-weight: 600;
    color: var(--dark-purple);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.options label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: normal;
}

.options label:hover {
    background: rgba(211, 166, 37, 0.1);
}

.options input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gryffindor-gold);
}

.submit-btn {
    background: linear-gradient(45deg, var(--gryffindor-red), var(--gryffindor-gold));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto 0;
    font-family: 'Cinzel', serif;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(211, 166, 37, 0.4);
}

.submit-btn i {
    margin-right: 0.5rem;
}

/* Results */
.results {
    background: rgba(245, 241, 232, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: center;
}

.results h3 {
    color: var(--gryffindor-red);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.house-result {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 15px;
    animation: result-glow 2s ease-in-out infinite alternate;
}

@keyframes result-glow {
    from { box-shadow: 0 0 20px rgba(211, 166, 37, 0.3); }
    to { box-shadow: 0 0 30px rgba(211, 166, 37, 0.6); }
}

.house-description {
    color: var(--dark-purple);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.retake-btn {
    background: var(--slytherin-green);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retake-btn:hover {
    background: var(--slytherin-silver);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark-purple);
    color: var(--light-gold);
    padding: 3rem 2rem 1rem;
    border-top: 3px solid var(--gryffindor-gold);
}

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

.footer-section h4 {
    color: var(--gryffindor-gold);
    font-family: 'Cinzel', serif;
    margin-bottom: 1rem;
}

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

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

.social-links a {
    color: var(--light-gold);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--gryffindor-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(211, 166, 37, 0.3);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .founder-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-dogs {
        flex-direction: column;
        align-items: center;
    }
    
    .houses-grid {
        grid-template-columns: 1fr;
    }
    
    .exam-form {
        padding: 2rem;
    }
    
    .founder-img {
        width: 250px;
        height: 250px;
    }
    
    .magical-frame {
        width: 270px;
        height: 270px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 1rem;
    }
    
    .hero {
        padding: 100px 1rem 2rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .exam-form {
        padding: 1.5rem;
    }
} 