/* DeTodoUIS - Comic Book About Page */

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

body {
    font-family: 'Comic Neue', cursive, sans-serif;
    background: #f4e4ba;
    background-image:
        radial-gradient(circle, #00000008 1px, transparent 1px);
    background-size: 4px 4px;
    min-height: 100vh;
}

/* Comic Page Container */
.comic-page {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    box-shadow:
        0 0 0 4px #000,
        8px 8px 0 rgba(0,0,0,0.3);
    position: relative;
}

/* Navigation */
.nav-home {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    font-family: 'Bangers', cursive;
    font-size: 18px;
    color: #000;
    text-decoration: none;
    background: #fff;
    padding: 5px 15px;
    border: 3px solid #000;
    border-radius: 5px;
    transition: transform 0.1s, box-shadow 0.1s;
}

.nav-home:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
    color: #000;
}

/* ========== TITLE PANEL ========== */
.title-panel {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 60px 20px 40px;
    text-align: center;
    border-bottom: 5px solid #000;
    position: relative;
    overflow: hidden;
}

/* Halftone overlay */
.title-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, #00000015 2px, transparent 2px);
    background-size: 8px 8px;
    pointer-events: none;
}

/* Starburst behind logo */
.starburst {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.starburst::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%);
    background: #fff;
    clip-path: polygon(
        50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%,
        50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%
    );
    z-index: 0;
}

.title-logo {
    position: relative;
    z-index: 1;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    padding: 15px;
    border: 4px solid #000;
}

.comic-title {
    font-family: 'Bangers', cursive;
    font-size: 72px;
    color: #000;
    text-shadow:
        4px 4px 0 #fff,
        6px 6px 0 #000;
    letter-spacing: 4px;
    position: relative;
    z-index: 1;
    margin: 10px 0;
}

.title-caption {
    display: inline-block;
    background: #fff;
    padding: 10px 25px;
    border: 4px solid #000;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    max-width: 500px;
    position: relative;
    z-index: 1;
    box-shadow: 4px 4px 0 #000;
}

/* ========== COMIC GRID ========== */
.comic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 5px solid #000;
}

/* Panel Base */
.panel {
    position: relative;
    min-height: 280px;
    border: 4px solid #000;
    margin: -2px;
    overflow: hidden;
}

.panel-inner {
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

/* Panel halftone overlay */
.panel-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, #00000010 1.5px, transparent 1.5px);
    background-size: 6px 6px;
    pointer-events: none;
}

/* Panel Colors */
.blue-bg { background: linear-gradient(145deg, #4A90D9 0%, #2E5C8A 100%); }
.green-bg { background: linear-gradient(145deg, #4CAF50 0%, #2E7D32 100%); }
.orange-bg { background: linear-gradient(145deg, #FF9800 0%, #E65100 100%); }
.purple-bg { background: linear-gradient(145deg, #9C27B0 0%, #6A1B9A 100%); }
.teal-bg { background: linear-gradient(145deg, #009688 0%, #00695C 100%); }
.red-bg { background: linear-gradient(145deg, #F44336 0%, #C62828 100%); }

/* Panel Number */
.panel-number {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: #FFD700;
    border: 3px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bangers', cursive;
    font-size: 16px;
    color: #000;
    z-index: 10;
}

/* Character */
.character-container {
    flex-shrink: 0;
    z-index: 5;
}

.character-circle {
    width: 90px;
    height: 90px;
    background: #fff;
    border: 4px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0 #000;
}

.character-circle img {
    width: 70px;
    height: 70px;
}

.character-circle img.flipped {
    transform: scaleX(-1);
}

/* Dialogue Area */
.dialogue-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
}

/* Question Burst */
.question-burst {
    display: inline-block;
    position: relative;
    align-self: flex-start;
}

.question-burst span {
    display: inline-block;
    background: #FFD700;
    padding: 8px 20px;
    font-family: 'Bangers', cursive;
    font-size: 28px;
    color: #000;
    border: 4px solid #000;
    position: relative;
    z-index: 1;
    transform: rotate(-2deg);
    box-shadow: 3px 3px 0 #000;
}

/* Jagged burst effect */
.question-burst::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: #FF0;
    clip-path: polygon(
        0% 20%, 8% 0%, 20% 15%, 35% 0%, 50% 10%,
        65% 0%, 80% 15%, 92% 0%, 100% 20%, 90% 35%,
        100% 50%, 90% 65%, 100% 80%, 92% 100%, 80% 85%,
        65% 100%, 50% 90%, 35% 100%, 20% 85%, 8% 100%,
        0% 80%, 10% 65%, 0% 50%, 10% 35%
    );
    z-index: 0;
}

/* Speech Bubble */
.speech-bubble {
    background: #fff;
    padding: 15px 20px;
    border: 4px solid #000;
    border-radius: 20px;
    position: relative;
    box-shadow: 4px 4px 0 #000;
}

.speech-bubble p {
    font-size: 15px;
    line-height: 1.5;
    color: #000;
    margin: 0;
}

/* Speech bubble tails */
.speech-bubble.from-left::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 20px;
    border: 12px solid transparent;
    border-right-color: #000;
}

.speech-bubble.from-left::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 22px;
    border: 10px solid transparent;
    border-right-color: #fff;
}

.speech-bubble.from-right::before {
    content: '';
    position: absolute;
    right: -20px;
    top: 20px;
    border: 12px solid transparent;
    border-left-color: #000;
}

.speech-bubble.from-right::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 22px;
    border: 10px solid transparent;
    border-left-color: #fff;
}

.who-text {
    text-align: center;
}

.who-text strong {
    font-size: 18px;
}

.who-text .email {
    font-family: monospace;
    font-size: 13px;
    color: #666;
}

/* ========== DOWNLOAD PANEL ========== */
.download-panel {
    background: #1a1a1a;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 5px solid #000;
    position: relative;
}

/* Action Burst */
.action-burst {
    display: inline-block;
    margin-bottom: 25px;
    position: relative;
}

.action-burst span {
    display: inline-block;
    background: #FF0;
    padding: 15px 40px;
    font-family: 'Bangers', cursive;
    font-size: 42px;
    color: #000;
    border: 5px solid #000;
    transform: rotate(-3deg);
    position: relative;
    z-index: 1;
}

.action-burst::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: #FFF;
    clip-path: polygon(
        50% 0%, 55% 20%, 75% 5%, 70% 25%, 95% 25%,
        80% 40%, 100% 50%, 80% 60%, 95% 75%, 70% 75%,
        75% 95%, 55% 80%, 50% 100%, 45% 80%, 25% 95%,
        30% 75%, 5% 75%, 20% 60%, 0% 50%, 20% 40%,
        5% 25%, 30% 25%, 25% 5%, 45% 20%
    );
    z-index: 0;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.comic-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 30px;
    font-family: 'Bangers', cursive;
    font-size: 22px;
    text-decoration: none;
    border: 4px solid #000;
    border-radius: 10px;
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 4px 4px 0 #000;
}

.comic-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 #000;
}

.comic-btn .btn-icon {
    font-size: 28px;
}

.comic-btn.web {
    background: #4A90D9;
    color: #fff;
}

.comic-btn.android {
    background: #4CAF50;
    color: #fff;
}

.comic-btn.ios {
    background: #f5f5f5;
    color: #000;
}

/* ========== FOOTER ========== */
.comic-footer {
    background: #2d2d2d;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 5px solid #000;
}

.footer-character {
    width: 60px;
    height: 60px;
    background: #FFD700;
    border-radius: 50%;
    border: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-character img {
    width: 45px;
    height: 45px;
}

.footer-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.the-end {
    font-family: 'Bangers', cursive;
    font-size: 36px;
    color: #FFD700;
    letter-spacing: 2px;
}

.copyright {
    font-size: 14px;
    color: #888;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
    .comic-grid {
        grid-template-columns: 1fr;
    }

    .comic-title {
        font-size: 48px;
    }

    .panel {
        min-height: auto;
    }

    .panel-inner {
        padding: 15px;
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }

    .character-container.left,
    .character-container.right {
        order: -1;
    }

    .dialogue-area {
        align-items: center;
    }

    .speech-bubble.from-left::before,
    .speech-bubble.from-left::after,
    .speech-bubble.from-right::before,
    .speech-bubble.from-right::after {
        /* Move tail to top */
        left: 50% !important;
        right: auto !important;
        top: -20px !important;
        transform: translateX(-50%) rotate(90deg);
    }

    .speech-bubble.from-left::after,
    .speech-bubble.from-right::after {
        top: -12px !important;
    }

    .question-burst span {
        font-size: 24px;
    }

    .speech-bubble p {
        font-size: 14px;
    }

    .action-burst span {
        font-size: 32px;
        padding: 10px 25px;
    }

    .comic-btn {
        padding: 12px 20px;
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .title-caption {
        font-size: 14px;
        padding: 8px 15px;
    }

    .character-circle {
        width: 70px;
        height: 70px;
    }

    .character-circle img {
        width: 55px;
        height: 55px;
    }
}
