/* style.css - Poppy Database Theme */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0b0c10;
    color: #e0e0e0;
    line-height: 1.6;
}

a {
    color: #ff4d4d;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff9999;
}

/* Header & Navigation */
header {
    background: #1f1f2f;
    padding: 1rem 2rem;
    border-bottom: 2px solid #ff4d4d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}

.logo span {
    color: #ff4d4d;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    border-bottom-color: #ff4d4d;
}

/* Main container */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Cards for homepage */
.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.chapter-card {
    background: #1e1e2a;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.2);
    transition: transform 0.3s ease;
    border-left: 4px solid #ff4d4d;
}

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

.chapter-card h3 {
    color: #ff4d4d;
    margin-bottom: 0.5rem;
}

.chapter-card .chapter-number {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: #ff4d4d;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #e63939;
    color: #fff;
}

/* Chapter page styles */
.chapter-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chapter-header h1 {
    font-size: 2.5rem;
    color: #ff4d4d;
}

.chapter-header .subtitle {
    font-size: 1.2rem;
    color: #ccc;
}

/* Thumbnail image */
.chapter-thumbnail {
    margin: 2rem 0;
    text-align: center;
}

.chapter-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #ff4d4d;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.3);
}

.info-section {
    background: #1a1a24;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #333;
}

.info-section h2 {
    color: #ff4d4d;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

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

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

.info-section li strong {
    color: #ff9999;
    width: 120px;
    display: inline-block;
}

/* Platform icons (hardware) and store/stream icons */
.platform-icons,
.store-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.platform-icons a,
.store-icons a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
}

.platform-icons a:hover,
.store-icons a:hover {
    color: inherit;
}

.platform-icons span,
.store-icons span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2a2a36;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    border: 1px solid #444;
    font-size: 0.95rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.platform-icons span:hover,
.store-icons span:hover {
    background: #3a3a4a;
    border-color: #ff4d4d;
}

/* Iconify icon styling */
.platform-icons iconify-icon,
.store-icons iconify-icon {
    font-size: 1.5rem;
    color: #ff4d4d;
    vertical-align: middle;
}

.platform-icons a:hover iconify-icon,
.store-icons a:hover iconify-icon {
    color: #ff9999;
}

/* Character profiles with images */
.character-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.character-profile {
    background: #252533;
    border-radius: 10px;
    border: 1px solid #ff4d4d;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 1rem;
}

.character-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

.character-profile img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 2px solid #ff4d4d;
}

.character-profile .character-name {
    display: block;
    font-weight: 600;
    color: #ff4d4d;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.character-profile .character-role {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 0.2rem;
}

/* Video container for responsive iframe */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    border: 1px solid #ff4d4d;
    margin-top: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #1f1f2f;
    border-top: 1px solid #333;
    margin-top: 3rem;
    color: #aaa;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #ff4d4d;
    color: #0b0c10;
}

.lang-btn.active {
    background: #ff4d4d;
    color: #0b0c10;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
