/* ===============================
   The Legend of Zelda Theme
   =============================== */

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

body {
    font-family: 'Trebuchet MS', system-ui, sans-serif;
    background: #0b0f08;
    color: #f8f6e7;
    line-height: 1.6;
    background-image: radial-gradient(circle at top, #1c2415 0%, #0b0f08 80%);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem;
}

.section {
    padding: 2rem 0;
}

/* ===============================
   Hero
   =============================== */

.site-header {
    border-bottom: 2px solid #1b2d17;
    background: linear-gradient(180deg, #1c3b18 0%, #0e1c0b 100%);
    box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1 1 260px;
}

.hero-image {
    flex: 0 0 260px;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: #d4af37; /* gold */
}

.hero h1 {
    font-size: 2.4rem;
    color: #e9e3b4;
    margin: 0.5rem 0 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-description {
    max-width: 32rem;
    color: #dcd5a2;
}

.hero-quote {
    margin-top: 1rem;
    font-style: italic;
    color: #ffd75b;
}

/* ===============================
   Status Cards
   =============================== */

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.status-card {
    background: #18210f;
    border: 2px solid #2b3c1d;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
}

.status-card:hover {
    transform: translateY(-3px);
}

.status-card h2 {
    margin-bottom: 1rem;
    color: #e9e3b4;
    text-shadow: 0 2px 3px rgba(0,0,0,0.4);
}

.status-image {
    margin: 0 auto 1rem;
}

.status-text {
    text-align: center;
    color: #d7d2a4;
}

/* ===============================
   Inventory Button
   =============================== */

.inventory-button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin: 0 auto 0.75rem;
    transition: transform 0.12s ease, filter 0.12s ease;
}

.inventory-button:hover {
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 0 8px rgba(218, 165, 32, 0.7));
}

.inventory-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffd75b;
}

/* ===============================
   Projects
   =============================== */

.projects-section h2 {
    margin-bottom: 0.25rem;
    color: #e9e3b4;
}

.section-subtitle {
    margin-bottom: 1.5rem;
    color: #c2bb92;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #1a2210;
    border-radius: 12px;
    border: 2px solid #2f4021;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 215, 91, 0.25);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5eeb8;
}

.project-icon {
    width: 48px;
    height: 48px;
}

.project-description {
    font-size: 0.9rem;
    color: #d7d2a4;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag-pill {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #6b8a3c;
    color: #cde89c;
    background: rgba(107, 138, 60, 0.2);
}

.project-actions {
    margin-top: 0.5rem;
}

.btn-equip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 2px solid #c3a028;
    background: #b38728;
    color: #fff7d4;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn-equip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255, 215, 91, 0.4);
    background: #c8a93c;
}

/* ===============================
   Inventory Overlay
   =============================== */

.inventory-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 11, 4, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
    z-index: 50;
}

.inventory-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.inventory-panel {
    background: #1a2210;
    border-radius: 16px;
    border: 2px solid #2f4021;
    box-shadow: 0 20px 50px rgba(10, 15, 5, 0.8);
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.inventory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.inventory-header h3 {
    font-size: 1.2rem;
    color: #e9e3b4;
}

.inventory-close-btn {
    background: transparent;
    border: none;
    color: #f8f6e7;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
}

.inventory-close-btn:hover {
    color: #ff7070;
}

.inventory-description {
    font-size: 0.9rem;
    color: #dcd5a2;
    margin-bottom: 0.5rem;
}

.inventory-list {
    margin-top: 0.25rem;
    padding-right: 0.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.inventory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.55rem;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(31,43,19,0.9), rgba(26,33,16,0.3));
    border: 1px solid #2f4021;
}

.inventory-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.inventory-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #2f4021;
    background: #18210f;
}

.inventory-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.inventory-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f5eeb8;
}

.inventory-item-desc {
    font-size: 0.8rem;
    color: #c8c197;
}

.inventory-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.15rem;
}

.inventory-item .btn-equip {
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
}

/* ===============================
   Hero Footer
   =============================== */

.hero-footer {
    background: #101509;
    border-top: 2px solid #2f4021;
    border-bottom: 2px solid #2f4021;
}

.hero-footer-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

.hero-footer-text {
    max-width: 22rem;
    color: #dcd5a2;
}

/* ===============================
   Footer
   =============================== */

.site-footer {
    border-bottom: 2px solid #1b2d17;
    background: linear-gradient(180deg, #1c3b18 0%, #0e1c0b 100%);
    box-shadow: 0 0 30px rgba(0,0,0,0.4);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-text h3 {
    margin-bottom: 0.2rem;
    color: #e9e3b4;
}

.footer-text p {
    color: #c8c197;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 640px) {
   .hero {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-text {
        order: 2; /* texto abaixo da imagem */
        align-items: center;
    }

    .hero-image {
        order: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto 1rem auto;
        width: 100%;
    }

    .hero-image img {
        max-width: 220px;
        height: auto;
    }

    .hero-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .inventory-panel {
        margin: 0 1rem;
        padding: 1rem 1.1rem;
    }

    .inventory-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .inventory-item .btn-equip {
        align-self: flex-end;
    }
}
