/* 
   Main Stylesheet for SpongeBob Pineapple House
   Place this file in: css/styles.css
*/

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pineapple-yellow: #FFD700;
    --pineapple-orange: #FFA500;
    --ocean-blue: #00CED1;
    --deep-ocean: #004B8D;
    --sandy-brown: #D2B48C;
    --sponge-yellow: #FFFF99;
    --text-dark: #2C3E50;
    --white: #FFFFFF;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(180deg, rgba(0, 206, 209, 0.3) 0%, rgba(0, 75, 141, 0.5) 100%);
    background-color: #E6F7FF;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Add animated bubbles background */
body::before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 65% 85%, rgba(255, 255, 255, 0.1) 0%, transparent 2%);
    animation: floatBubbles 20s infinite linear;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatBubbles {
    0% { transform: translateY(100vh) translateX(0); }
    100% { transform: translateY(-100vh) translateX(50px); }
}

/* Pineapple Hamburger Menu */
.pineapple-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    cursor: pointer;
    display: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pineapple-crown {
    width: 40px;
    height: 15px;
    background: linear-gradient(45deg, #228B22 0%, #32CD32 100%);
    clip-path: polygon(10% 100%, 20% 0%, 35% 100%, 50% 0%, 65% 100%, 80% 0%, 90% 100%);
    margin-bottom: -2px;
}

.pineapple-body {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--pineapple-yellow) 0%, var(--pineapple-orange) 100%);
    border-radius: 40% 40% 50% 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pineapple-body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(139, 69, 19, 0.1) 5px, rgba(139, 69, 19, 0.1) 10px),
        repeating-linear-gradient(-45deg, transparent, transparent 5px, rgba(139, 69, 19, 0.1) 5px, rgba(139, 69, 19, 0.1) 10px);
    border-radius: inherit;
}

.menu-line {
    width: 20px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    position: relative;
    z-index: 1;
}

.pineapple-menu.active .menu-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.pineapple-menu.active .menu-line:nth-child(2) {
    opacity: 0;
}

.pineapple-menu.active .menu-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100vh;
    background: linear-gradient(135deg, var(--sponge-yellow) 0%, var(--pineapple-yellow) 100%);
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    display: block;
    padding: 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.3);
    padding-left: 25px;
}

.partner-link {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 215, 0, 0.1) 100%);
    padding: 40px 20px;
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 20px;
    text-align: center;
}

.partner-link h2 {
    color: var(--deep-ocean);
    margin-bottom: 20px;
}

.partner-link p {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-dark);
}

.partner-link a {
    color: var(--pineapple-orange);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid var(--pineapple-orange);
    transition: all 0.3s;
}

.partner-link a:hover {
    color: var(--deep-ocean);
    border-bottom-color: var(--deep-ocean);
}

.social-links {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a {
    display: inline-block;
    margin: 5px 5px 0 0;
    padding: 8px 15px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #FFD700;
    color: #004B8D;
    transform: translateY(-2px);
}

/* Header */
.main-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 165, 0, 0.95) 100%);
    padding: 30px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid var(--pineapple-orange);
    transition: all 0.3s ease;
}

.header-content h1 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.tagline {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--deep-ocean);
    font-style: italic;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    font-weight: bold;
}

.nav-link:hover, .nav-link.active {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 5;
}

.news-article-review {
    background-color: rgba(255, 215, 0, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    border: 3px solid #FFD700;
}

.news-article-review h2 {
    color: #FF8C00;
    margin-bottom: 20px;
    text-align: center;
}

.news-article-review p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.whats-new-exciting {
    margin: 40px 0;
    padding: 30px 0;
}

.picnic-spot {
    background-color: rgba(135, 206, 250, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    border: 3px solid #87CEEB;
}

.picnic-spot h2 {
    color: #FF8C00;
    margin-bottom: 20px;
}

.picnic-spot p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .exciting-images {
        flex-direction: column;
    }
    
    .exciting-images > div {
        max-width: 100% !important;
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.hero-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--deep-ocean);
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-align: left;
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 10px;
}

/* Banner Ads */
.banner-ad,
.banner-ad-square {
    text-align: center;
    margin: 40px auto;
    max-width: 1200px;
    padding: 20px;
}

.banner-ad a,
.banner-ad-square a {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-ad a:hover,
.banner-ad-square a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.banner-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.banner-ad-square img {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .banner-ad img {
        max-width: 100%;
        height: auto;
    }
    
    .banner-ad-square img {
        width: 200px;
        height: 200px;
    }
}

/* Section intro for info section */
.section-intro {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
}

/* Image Placeholders */
.hero-image-placeholder {
    margin: 40px auto;
    max-width: 1000px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.info-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0 40px 0;
}

.info-image-placeholder {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.info-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 215, 0, 0.2) 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--pineapple-yellow);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--deep-ocean);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.feature-card p {
    line-height: 1.7;
    text-align: justify;
}

/* Info Section */
.info-section {
    background: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.info-section h2 {
    text-align: center;
    color: var(--deep-ocean);
    margin-bottom: 30px;
    font-size: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.info-item {
    padding: 20px;
    background: linear-gradient(135deg, var(--sponge-yellow) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-radius: 15px;
    border-left: 5px solid var(--pineapple-orange);
}

.info-item h3 {
    color: var(--deep-ocean);
    margin-bottom: 10px;
}

/* Fun Facts Bubbles */
.fun-facts {
    text-align: center;
    margin: 60px 0;
}

.fun-facts h2 {
    color: var(--deep-ocean);
    margin-bottom: 30px;
    font-size: 2rem;
}

.fact-bubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.bubble {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), var(--ocean-blue));
    padding: 20px;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

.bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.bubble.popping {
    animation: bubblePop 0.2s ease-out forwards !important;
}

.bubble.regenerating {
    animation: regenerate 0.4s ease-in forwards;
}

/* Bubble burst particles */
.bubble-particle {
    position: fixed;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), var(--ocean-blue));
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    animation: particleBurst 0.6s ease-out forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bubblePop {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes particleBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

@keyframes regenerate {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(0.5) rotate(90deg);
        opacity: 0.5;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Fact content styling */
.fact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.fact-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--pineapple-yellow) 0%, var(--pineapple-orange) 100%);
    border-radius: 20px;
    margin: 40px 0;
}

.cta-section h2 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--deep-ocean);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.main-footer {
    background: linear-gradient(180deg, rgba(0, 75, 141, 0.95) 0%, rgba(0, 43, 78, 0.98) 100%);
    color: var(--white);
    padding: 40px 20px 20px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--pineapple-yellow);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--pineapple-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* Floating Bubbles Container */
.floating-bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.floating-bubble {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    bottom: -100px;
    animation: floatUp linear infinite;
    opacity: 0.6;
    pointer-events: auto;
}

@keyframes floatUp {
    0% {
        bottom: -100px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 110vh;
        transform: translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Header scroll effects */
.main-header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.main-header.header-hidden {
    transform: translateY(-100%);
}

/* Page transitions */
body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.page-loaded {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pineapple-menu {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .bubble {
        width: 120px;
        height: 120px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* Contact Page Styles */
.contact-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.contact-methods {
    margin-top: 30px;
}

.contact-methods h3 {
    color: var(--deep-ocean);
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
    border-bottom: 3px solid var(--pineapple-yellow);
    padding-bottom: 10px;
    display: inline-block;
}

.contact-methods p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.contact-methods a {
    color: var(--pineapple-orange);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid var(--pineapple-orange);
    transition: all 0.3s;
}

.contact-methods a:hover {
    color: var(--deep-ocean);
    border-bottom-color: var(--deep-ocean);
}

/* About Author Section */
.about-author {
    background: linear-gradient(135deg, rgba(255, 255, 153, 0.3) 0%, rgba(255, 215, 0, 0.2) 100%);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    border-left: 5px solid var(--pineapple-orange);
}

.about-author h2 {
    color: var(--deep-ocean);
    margin-bottom: 20px;
}

.about-author p {
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Licenses Page Styles */
.licenses-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
}

.licenses-content h2 {
    color: var(--deep-ocean);
    margin: 30px 0 20px 0;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--pineapple-yellow);
    padding-bottom: 10px;
}

.licenses-content h3 {
    color: var(--pineapple-orange);
    margin: 20px 0 15px 0;
    font-size: 1.3rem;
}

.image-credits {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 215, 0, 0.1) 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
}

.image-credits ul {
    list-style: none;
    padding: 0;
}

.image-credits li {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid var(--ocean-blue);
    transition: transform 0.3s;
}

.image-credits li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-credits li strong {
    color: var(--deep-ocean);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.licenses-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.licenses-content ul li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Mobile Responsive for Contact/License Pages */
@media (max-width: 768px) {
    .contact-info,
    .licenses-content,
    .about-author {
        padding: 20px;
    }
    
    .contact-methods h3,
    .licenses-content h2 {
        font-size: 1.3rem;
    }
    
    .image-credits li {
        padding: 10px;
    }
}

@media (min-width: 769px) {
    .pineapple-menu,
    .mobile-nav {
        display: none !important;
    }
}

/* Print styles */
@media print {
    .pineapple-menu,
    .mobile-nav,
    .desktop-nav,
    .cta-button,
    .floating-bubbles-container {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .main-header,
    .main-footer {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc;
    }
}