/* Cartoonist Modern Design - Rodrigo Geraldi Portfolio */

* {
    box-sizing: border-box;
}

body {
    background-color: #fff;
    font-family: 'Poppins', sans-serif;
    color: #000;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bangers', cursive;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* Header Section */
.header-section {
    padding: 20px 0;
    position: relative;
}

.bio-btn {
    border: 2px solid #000;
    padding: 5px 15px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 20px;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s;
}

.bio-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #000;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    box-shadow: 4px 4px 0px #000;
}

.name-title {
    text-align: center;
    text-transform: uppercase;
}

.name-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
    font-weight: bold;
}

.name-title p {
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Section Title */
.section-title {
    border-bottom: 3px solid #000;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Cartoon Borders */
.cartoon-border {
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
}

.cartoon-border-sm {
    border: 2px solid #000;
    box-shadow: 3px 3px 0px #000;
}

.cartoon-hover {
    transition: all 0.2s ease-out;
}

.cartoon-hover:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000 !important;
}

/* Carousel */
.cartoon-of-the-day {
    border: 3px solid #000;
    padding: 0;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 4px 4px 0px #000;
}

#carouselCartoons {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-inner {
    height: 350px;
}

.carousel-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-content {
    font-size: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-emoji {
    font-size: 6rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: #f0f0f0;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

.carousel-indicators-custom {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: #fff;
    border-top: 3px solid #000;
}

.carousel-indicators-custom button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicators-custom button.active {
    background: #000;
    width: 30px;
    border-radius: 6px;
}

/* Frases Section */
.frases-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.frases-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    padding: 0;
}

.frases-btn:hover {
    transform: scale(1.3) rotate(20deg);
}

.frase-display {
    border: 2px solid #000;
    padding: 15px;
    margin-top: 15px;
    background: #f9f9f9;
    font-style: italic;
    display: none;
    animation: slideIn 0.3s ease-in-out;
    box-shadow: 3px 3px 0px #000;
}

.frase-display.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-item {
    border: 3px solid #000;
    aspect-ratio: 1.2/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 4px 4px 0px #000;
    background: #fff;
    cursor: pointer;
    padding: 15px;
    gap: 10px;
}

.category-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
    background: #f8f8f8;
    color: #000;
    text-decoration: none;
}

.category-emoji {
    font-size: 2.5rem;
}

.category-name {
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Newsletter Section */
.newsletter-section {
    border: 2px solid #000;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    box-shadow: 3px 3px 0px #000;
}

.newsletter-input {
    border: none;
    flex: 1;
    outline: none;
    background: transparent;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    padding: 0;
}

.newsletter-btn:hover {
    transform: scale(1.2);
}

/* Footer */
footer {
    text-transform: uppercase;
    font-weight: bold;
}

footer a {
    color: #000;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

footer a:hover {
    transform: translateX(5px);
}

.envelope-btn {
    position: absolute;
    right: 0;
    top: -60px;
    border: 3px solid #000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 3px 3px 0px #000;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.envelope-btn:hover {
    transform: scale(1.1);
}

/* Modal */
.cartoon-modal {
    border: 3px solid #000;
    box-shadow: 8px 8px 0px #000;
}

.cartoon-modal .modal-header {
    border-bottom: 3px solid #000;
    background: #f9f9f9;
}

.cartoon-modal .modal-title {
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Bangers', cursive;
}

.cartoon-modal .btn-close {
    border: 2px solid #000;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.cartoon-modal .btn-close:hover {
    background: #000;
}

/* Back Button */
.btn-back {
    border: 2px solid #000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 3px 3px 0px #000;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #f0f0f0;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .name-title h1 {
        font-size: 2rem;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .bio-btn {
        position: static;
        margin-bottom: 15px;
        display: inline-block;
    }

    .header-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .carousel-emoji {
        font-size: 4rem;
    }

    #carouselCartoons {
        min-height: 250px;
    }

    .carousel-inner {
        height: 250px;
    }
    
}
