/* English Camp 2025 - SMA ABBS Surakarta */
/* File: css/style.css */

/* General Styling & Variables */
:root {
    --primary-green: #4CAF50;
    --dark-text: #333333;
    --school-blue: #007BFF;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --footer-bg: #2c3e50;
    --font-heading: 'Fredoka One', cursive;
    --font-body: 'Poppins', sans-serif;
    scroll-padding-top: 80px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark-text); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--dark-text); margin-bottom: 1rem; }
h2 { text-align: center; font-size: 2.5rem; margin-bottom: 2rem; }
p { margin-bottom: 1rem; }
section { padding: 60px 0; position: relative; }

/* 1. Navbar */
.navbar { background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); padding: 15px 0; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: padding 0.3s ease; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-sma, .logo-ec { max-height: 45px; width: auto; flex-shrink: 0; }
.navbar nav { display: flex; align-items: center; gap: 20px; }
.navbar nav ul { list-style: none; display: flex; gap: 25px;}
.navbar nav a { text-decoration: none; color: var(--dark-text); font-weight: 600; padding-bottom: 5px; position: relative; transition: color 0.3s; }
.navbar nav a:not(.btn)::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--primary-green); transition: width 0.3s; }
.navbar nav a:not(.btn):hover::after, .navbar nav a.active:not(.btn)::after { width: 100%; }
.navbar nav a:not(.btn):hover, .navbar nav a.active:not(.btn) { color: var(--primary-green); }
.hamburger { display: none; }
main { padding-top: 70px; }

/* 2. Hero Section */
.hero { height: calc(100vh - 70px); background: url('https://images.unsplash.com/photo-1588075592446-265fd1e6e76f?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover; position: relative; display: flex; justify-content: center; align-items: center; text-align: center; color: var(--white); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 4.5rem; color: var(--white); margin-bottom: 0.5rem; }
.hero p { font-size: 1.2rem; font-weight: 400; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.hero-button { display: inline-block; margin-top: 20px; padding: 12px 30px; background-color: var(--primary-green); color: white; border-radius: 50px; text-decoration: none; font-weight: 600; animation: pulse 2s infinite; border: none; cursor: pointer; }
.countdown-timer { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 2rem; }
.countdown-timer div { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); padding: 15px 25px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2); }
.countdown-timer span { display: block; font-size: 2.5rem; font-weight: 700; }

/* 3. Introduction Section */
.intro { background-color: var(--light-bg); }
.intro::before { content: ""; position: absolute; bottom: 99%; left: 0; width: 100%; height: 50px; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" style="fill:%23f9f9f9;"></path></svg>'); background-size: cover; transform: rotate(180deg); }
.intro-container { display: flex; gap: 40px; align-items: center; }
.intro-text { flex: 2; }
.info-box { flex: 1; background-color: var(--white); padding: 25px; border-radius: 10px; border-left: 5px solid var(--primary-green); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.info-box ul { list-style: none; }
.info-box li { margin-bottom: 10px; font-size: 1rem; }

/* 4. Gallery Section */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.05); box-shadow: 0 8px 15px rgba(0,0,0,0.2); }

/* 5. CTA Section */
.cta { background-color: var(--light-bg); }
.cta-cards { display: flex; justify-content: space-between; gap: 20px; margin-top: 2rem; }
.card { flex-basis: 32%; background: var(--white); padding: 30px; padding-top: 80px; border-radius: 10px; text-align: center; text-decoration: none; color: var(--dark-text); box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; position: relative; }
.card:hover { transform: translateY(-10px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); color: var(--primary-green); }
.card h3 { font-size: 1.5rem; }
.card::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 50px; height: 50px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.card:nth-child(1)::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>'); }
.card:nth-child(2)::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"/></svg>'); }
.card:nth-child(3)::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M4 21h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2zM12 7c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3 3zM5 19V7h1.59c.24-1.12 1.3-2 2.41-2h6c1.1 0 2.16.88 2.41 2H19v12H5z"/></svg>'); }

/* 6. Footer & Back-to-Top */
.footer { background-color: var(--footer-bg); color: var(--white); text-align: center; padding: 20px 0; }
.back-to-top { position: fixed; bottom: 20px; right: 20px; background-color: var(--primary-green); color: white; border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 24px; display: none; cursor: pointer; z-index: 100; text-align: center; line-height: 50px; text-decoration: none; }

/* War Ticket Button */
.btn-warticket { background-color: var(--primary-green); color: var(--white); padding: 8px 20px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.btn-warticket:hover { background-color: #45a049; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* === STYLING UNTUK HALAMAN-HALAMAN SPESIFIK === */
.page-title { background-color: var(--light-bg); padding: 40px 0; text-align: center; }
.page-title h2 { font-size: 3rem; margin-bottom: 0.5rem; }
.page-title p { font-size: 1.1rem; color: #666; }

/* Groups Page */
.search-section { padding: 40px 20px; text-align: center; }
#search-input { width: 100%; max-width: 600px; padding: 15px 25px; font-size: 1.2rem; border-radius: 50px; border: 2px solid #ddd; font-family: var(--font-body); transition: all 0.3s ease; }
#search-input:focus { outline: none; border-color: var(--primary-green); box-shadow: 0 0 15px rgba(76, 175, 80, 0.2); }
.group-display { padding-top: 0; padding-bottom: 80px; }
.group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.group-card { background-color: var(--white); border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); padding: 25px; border-top: 5px solid var(--primary-green); transition: transform 0.3s, box-shadow 0.3s; }
.group-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.group-card h3 { font-size: 1.6rem; margin-bottom: 5px; }
.facilitator { font-weight: 600; color: #555; margin-bottom: 20px; font-style: italic; }
.member-list { list-style: none; padding-left: 0; }
.member-list li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.member-list li:last-child { border-bottom: none; }
.student-class { background-color: #e9e9e9; color: #555; font-size: 0.8em; font-weight: 600; padding: 3px 8px; border-radius: 10px; }
.not-found-message { text-align: center; font-size: 1.2rem; font-weight: 600; color: #888; padding: 40px 0; }

/* Packing List Page */
.packing-list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; padding-bottom: 60px; margin-top: 20px; }
.category-card { background-color: var(--white); border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); overflow: hidden; }
.category-header { background-color: var(--primary-green); color: var(--white); padding: 15px 20px; }
.category-header h3 { color: var(--white); margin-bottom: 0; font-size: 1.4rem; }
.checklist { list-style: none; padding: 20px; }
.checklist li { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.checklist li:last-child { border-bottom: none; }
.checklist input[type="checkbox"] { margin-right: 15px; width: 20px; height: 20px; cursor: pointer; accent-color: var(--primary-green); }
.checklist label { cursor: pointer; transition: color 0.3s; }
.checklist input[type="checkbox"]:checked + label { text-decoration: line-through; color: #999; }
.category-card.prohibited .category-header { background-color: #e74c3c; }
.checklist-prohibited { padding: 20px; list-style-position: inside; color: #555; }
.download-section { text-align: center; padding-bottom: 60px; }
.download-btn { display: inline-block; background-color: var(--school-blue); color: var(--white); padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1.1rem; transition: background-color 0.3s, transform 0.3s; }
.download-btn:hover { background-color: #0056b3; transform: scale(1.05); }

/* War Ticket Page */
.btn-warticket.btn-active { background-color: #45a049; box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); transform: translateY(1px); }
.coming-soon-section { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; text-align: center; }
.coming-soon-icon svg { color: var(--primary-green); opacity: 0.5; margin-bottom: 20px; }
.coming-soon-title { font-size: 4rem; font-family: var(--font-heading); }
.coming-soon-subtitle { font-size: 1.2rem; color: #666; max-width: 600px; margin: 0 auto 30px auto; }
.activation-info { background-color: var(--light-bg); padding: 15px 30px; border-radius: 12px; display: inline-block; }
.activation-info p { margin-bottom: 5px; color: #555; }
.activation-info strong { font-size: 1.3rem; color: var(--dark-text); }

/* Competitions Page */
.competition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding-bottom: 60px; margin-top: 20px; }
.competition-card { background-color: var(--white); border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); padding: 30px; text-align: center; border-bottom: 5px solid var(--primary-green); transition: transform 0.3s, box-shadow 0.3s; }
.competition-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }
.competition-icon { font-size: 3rem; margin-bottom: 15px; line-height: 1; }
.competition-card h3 { font-size: 1.8rem; margin-bottom: 10px; }
.competition-desc { color: #666; margin-bottom: 25px; min-height: 80px; }
.btn-details { background-color: #f0f0f0; color: var(--dark-text); padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; }
.btn-details:hover { background-color: var(--primary-green); color: var(--white); }
/* Master-Detail View Styles */
.view { display: none; animation: fadeIn 0.5s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.back-btn { background: none; border: none; font-size: 1rem; font-weight: 600; color: var(--primary-green); cursor: pointer; display: flex; align-items: center; margin-bottom: 20px; padding: 5px 0; }
.back-btn:hover { text-decoration: underline; }
#detail-view .container { padding-bottom: 80px; }
.detail-title { font-size: 3rem; text-align: left; margin-bottom: 25px; border-bottom: 3px solid var(--primary-green); padding-bottom: 15px; }
.detail-body { font-family: var(--font-body); line-height: 1.8; color: #555; font-size: 1.1rem; }
.detail-body h4 { font-family: var(--font-heading); color: var(--dark-text); margin-top: 30px; margin-bottom: 10px; font-size: 1.5rem; }
.detail-body ul { padding-left: 20px; }

/* Styling untuk Social Media di Footer */
.footer {
    padding-top: 30px;
    padding-bottom: 30px;
}

.social-media {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s, transform 0.3s;
}

.social-media a:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .navbar nav { display: none; }
    #nav-menu.active { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 20px 0; position: absolute; top: 100%; left: 0; background: var(--white); width: 100%; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
    #nav-menu.active ul { flex-direction: column; width: 100%; text-align: center; gap: 15px; }
    .hamburger { display: block; background: none; border: none; cursor: pointer; z-index: 10; }
    .hamburger .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--dark-text); transition: all 0.3s ease-in-out; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .intro-container { flex-direction: column; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .cta-cards { flex-direction: column; gap: 20px; }
}
