/* ============================================
   TSJ Soluções de Impressão - Stylesheet
   Convertido de Tailwind @apply para CSS normal
   ============================================ */

/* Tailwind CDN - mantido para classes utilitárias */
@import url('https://cdn.tailwindcss.com');

/* Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ============================================
   CSS CUSTOMIZADO (conversão do @layer base)
   ============================================ */

:root {
    --cor-primaria: #003f2d;
    --cor-secundaria: #1b998b;
    --cor-destaque: #e74c3c;
    --texto-claro: #ffffff;
    --texto-escuro: #333333;
    --fonte-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --vh: 1vh;
    --header-height: 0px;
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--fonte-principal);
    line-height: 1.6;
    color: var(--texto-escuro);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #d8dfe8 0%, #c2ccd9 50%, #d8dfe8 100%);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container principal */
.container-main {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    z-index: 1;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Seções */
section {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 2rem auto !important;
    padding: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    scroll-margin-top: var(--header-height);
    position: relative;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--cor-primaria);
    font-size: 2rem;
    font-weight: bold;
}

/* Header */
header {
    background-color: var(--cor-primaria);
    color: var(--texto-claro);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.logo {
    height: 48px;
    width: auto;
}

.header-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.title-main {
    font-size: 1.1rem;
    font-weight: bold;
    white-space: nowrap;
    color: white;
}

.title-sub {
    font-size: 0.85rem;
    opacity: 0.9;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.9);
}

.title-desc {
    font-size: 0.7rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .header-container {
        justify-content: flex-start;
    }

    .logo {
        height: 55px;
    }

    .title-main {
        font-size: 1.3rem;
    }

    .title-sub {
        font-size: 0.95rem;
    }

    .title-desc {
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .header-container {
        align-items: flex-start;
        gap: 8px;
    }

    .logo {
        height: 40px;
    }

    .title-main {
        font-size: 1rem;
    }

    .title-sub {
        font-size: 0.75rem;
    }

    .title-desc {
        font-size: 0.65rem;
        line-height: 1.1;
    }
}

/* Navegação Desktop */
header nav {
    display: flex;
    position: static;
    top: auto;
    background-color: var(--cor-primaria);
    padding: 1rem 0;
    z-index: 99;
    justify-content: center;
    width: 100%;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0 1rem;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header nav ul li a {
    color: var(--texto-claro);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a:active {
    color: var(--cor-secundaria);
}

/* Banner / Hero */
.banner {
    text-align: center;
    padding: clamp(16px, 4vh, 32px) 2vw;
    margin-bottom: 2rem;
    background-image: linear-gradient(rgba(0, 63, 45, 0.9), rgba(0, 63, 45, 0.9)), url('../imagens/impressao-pb.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 0 !important;
    width: 100% !important;
}

#home.banner {
    padding-top: 80px !important;
    min-height: 50vh;
}

.banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.banner button {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 1.5rem;
    padding: 0.7rem 1.4rem;
    background: var(--cor-destaque);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.banner button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: #d63a2a;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Processos / Services */
.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.service-card {
    flex-direction: column;
    padding: 20px;
    aspect-ratio: unset;
    min-height: 250px;
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.service-card h3 {
    order: -1;
    margin-bottom: 1rem;
    color: var(--cor-primaria);
    font-size: 1.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--texto-escuro);
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 90%;
    position: relative;
    z-index: 2;
}

/* Backgrounds individuais dos cards */
.service-card:nth-child(1) { background-image: url('../imagens/off.jpg'); }
.service-card:nth-child(2) { background-image: url('../imagens/tip.jpg'); }
.service-card:nth-child(3) { background-image: url('../imagens/comp.jpg'); }
.service-card:nth-child(4) { background-image: url('../imagens/guilho.jpg'); }

.service-card:hover {
    transform: translateY(-10px);
}

/* Portfólio */
.portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 63, 45, 0.9);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Sobre - Seção com fundo especial */
.about-section {
    background-image: linear-gradient(rgba(0, 63, 45, 0.6), rgba(0, 63, 45, 0.9)), url('../imagens/parceria.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    width: 90%;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.about-section h2 {
    color: #ffffff;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 3;
}

.about-section p {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
    position: relative;
    z-index: 3;
}

.projector-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Film Container - Galeria estilo filme */
.film-container {
    position: relative;
    margin: 0.5rem auto;
    padding: 15px;
    padding-left: 40px;
    background-size: auto 100px;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    max-width: 100%;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background: rgba(0, 0, 0, 0.3);
}

.film-strip {
    display: flex;
}

.film-frame {
    aspect-ratio: 1.5/1;
    flex: 0 0 250px;
    margin: 0 10px;
    height: 180px;
    border: 2px solid white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    position: relative;
    scroll-snap-align: start;
}

.film-frame:hover {
    transform: scale(1.05);
}

.film-frame img {
    display: block;
    object-fit: contain;
    height: 100%;
    width: 100%;
}

.film-frame::before {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 63, 45, 0.9);
    color: white;
    padding: 10px;
    width: 100%;
    text-align: center;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.film-frame:hover::before {
    opacity: 0;
    pointer-events: none;
}

/* Gallery Navigation */
.gallery-nav {
    position: relative;
    margin-top: 0;
    z-index: 3;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 10;
}

.nav-button:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(255, 255, 255, 1);
    opacity: 1;
}

.nav-button.prev { left: 10px; }
.nav-button.next { right: 10px; }

.nav-button svg {
    width: 24px;
    height: 24px;
}

/* Textos da Galeria */
.gallery-text-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.gallery-text-mobile {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 5px;
}

.gallery-text-desktop {
    display: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 8px;
}

@media (min-width: 768px) {
    .gallery-text-mobile {
        display: none;
    }
    
    .gallery-text-desktop {
        display: block;
    }
}

/* Widget Cotações */
.cotacoes-card {
    background: #e8f0e8 !important;
    border: 1px solid #c8d5c8;
    border-radius: 12px;
    padding: 12px;
}

/* Contato */
#contact {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../imagens/impressao-pb.jpg');
    background-size: cover;
    background-position: center;
    padding: 2rem;
    position: relative;
    border-radius: 8px;
}

#contact h2 {
    color: white;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.contact-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    color: var(--cor-primaria);
    margin-right: 8px;
}

.contact-item span {
    color: var(--cor-primaria);
    font-weight: bold;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1em;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.contact-item p a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.contact-item a:hover {
    color: var(--cor-destaque);
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--cor-primaria);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--cor-primaria);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.map-link:hover {
    color: var(--cor-secundaria);
    border-bottom-color: var(--cor-secundaria);
}

.whatsapp-icon {
    font-size: 1.5em;
    color: #25D366;
    margin-left: 5px;
    vertical-align: middle;
}

.whatsapp-link {
    display: inline-block;
    margin-top: 8px;
    color: #25D366;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #25D366;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    color: #128C7E;
    border-bottom-color: #128C7E;
}

.whatsapp-link i {
    font-size: 1em;
    margin-right: 4px;
    vertical-align: middle;
}

/* Footer */
footer {
    background-color: var(--cor-primaria);
    color: #ffffff;
    padding: 1rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.footer-content p {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    white-space: nowrap;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.clock {
    font-weight: bold;
    color: #74c69d;
    font-size: 1.2rem;
    margin: 0;
}

.open-source-text {
    font-size: 0.8rem;
    opacity: 0.8;
    color: #ffffff;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

@media (max-width: 1024px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .film-frame {
        flex: 0 0 45vw;
        height: 200px;
    }
}

@media (max-width: 768px) {
    header nav {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        padding: 0.5rem 0;
        background-color: var(--cor-primaria);
    }
    header nav ul {
        display: flex;
        list-style: none;
        padding: 0 0.2rem;
        margin: 0 auto;
        gap: 0.2rem;
        white-space: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: center;
        width: 100%;
        max-width: none;
    }
    header nav ul::-webkit-scrollbar {
        display: none;
    }
    header nav ul li a {
        font-size: 0.7rem;
        padding: 0.2rem 0.3rem;
        color: var(--texto-claro);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
        white-space: nowrap;
        flex-shrink: 0;
    }
    header nav ul li a:hover,
    header nav ul li a:active {
        color: var(--cor-secundaria);
    }
    #home.banner {
        padding-top: 60px !important;
        min-height: 40vh;
    }
    .container-main {
        width: 98% !important;
        padding: 0 5px !important;
        margin-top: 60px;
    }
    .banner {
        padding-bottom: clamp(16px, 4vh, 32px) !important;
        margin-top: 0 !important;
    }
    .services {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .service-card {
        aspect-ratio: unset;
        min-height: 180px;
        padding: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .service-card::before {
        background: rgba(255, 255, 255, 0.5);
    }
    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        order: -1;
    }
    .service-card p {
        font-size: 0.95rem;
        max-width: 100%;
    }
    .portfolio,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-item {
        height: 200px;
    }
    .portfolio-overlay {
        padding: 0.8rem;
    }
    .portfolio-overlay h3 {
        font-size: 1.1rem !important;
        text-align: center;
    }
    .portfolio-overlay p {
        font-size: 0.85rem !important;
        line-height: 1.4;
        text-align: center;
    }
    .contact-item {
        padding: 0.8rem;
        width: 90%;
        max-width: 380px;
    }
    .contact-item h3 {
        font-size: 1.1rem !important;
        text-align: center;
    }
    .contact-item p {
        font-size: 0.7em;
        line-height: 1.2;
        flex-direction: row;
        justify-content: center;
        flex-wrap: nowrap;
        align-items: center;
        font-size: 0.85rem !important;
        line-height: 1.4;
        text-align: center;
    }
    .contact-item p a {
        white-space: nowrap;
    }
    .whatsapp-icon {
        font-size: 1em;
    }
    .film-frame {
        flex: 0 0 90%;
        min-width: 90%;
        margin: 0 5%;
        height: auto;
    }
    .film-frame img {
        object-fit: contain;
        height: 100%;
        width: 100%;
    }
    .film-container {
        padding-left: 30px;
        background-size: auto 80px;
    }
    .nav-button {
        width: 35px;
        height: 35px;
        opacity: 0.9 !important;
    }
}

@media (max-width: 576px) {
    section h2 {
        font-size: 1.5rem;
    }
    body {
        font-size: 0.95rem;
    }
    section p {
        font-size: 0.95rem;
    }
    header nav ul {
        gap: 0.1rem;
        padding: 0 0.1rem;
    }
    header nav ul li a {
        font-size: 0.65rem;
        padding: 0.1rem 0.2rem;
    }
    #home.banner {
        padding-top: calc(var(--header-height, 0px) + 50px + 0.5rem * 2 + 1rem) !important;
    }
}

@media (max-width: 400px) {
    .services {
        gap: 1rem;
        align-items: stretch;
    }
    .service-card {
        min-height: 150px;
        padding: 1rem;
    }
    .service-card h3 {
        font-size: 1rem;
    }
    .service-card p {
        font-size: 0.8rem;
    }
    .service-card::before {
        background: rgba(255, 255, 255, 0.5);
    }
}

@media (max-width: 375px) {
    #home.banner {
        padding-top: 100px !important;
    }
    .service-card,
    .portfolio-item {
        height: auto;
        min-height: 150px;
    }
    .service-card h3 {
        font-size: 1rem;
    }
    .service-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .contact-item {
        padding: 0.6rem;
        width: 100%;
        max-width: none;
    }
    .contact-item p {
        font-size: 0.65em;
        line-height: 1.2;
        flex-direction: row;
        justify-content: center;
        flex-wrap: nowrap;
        align-items: center;
    }
    .contact-item p a {
        white-space: nowrap;
    }
    .film-frame {
        flex: 0 0 100%;
        min-width: 100%;
        margin: 0;
        height: auto;
    }
    .film-frame img {
        object-fit: contain;
        height: 100%;
        width: 100%;
    }
    .film-container {
        padding: 5px;
        padding-left: 25px;
    }
}

@media (min-width: 1440px) {
    .container-main { max-width: 1400px; }
}

/* ============================================
   WIDGETS GRID - Notícias, Clima, Cotações
   ============================================ */

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.widget-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}



.widget-content {
    padding: 0;
    height: 220px;
    overflow: hidden;
}

.widget-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile - empilhados e compactos */
@media (max-width: 768px) {
    .widgets-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0 10px;
    }
    
    .widget-card {
        width: 100%;
        border-radius: 6px;
    }
    
    .weather-info .temp {
        font-size: 2rem;
    }
    
    .weather-info .desc {
        font-size: 0.85rem;
    }
}

/* ============================================
   WIDGET IP - DARK MODE
   ============================================ */

.ip-widget-dark {
    padding: 15px;
    background: #1e1e1e;
    border-radius: 12px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.widget-title-dark {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ecf0f1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.widget-title-dark i {
    margin-right: 6px;
    color: #3498db;
}

.ip-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 6px 0;
    text-align: center;
}

.ip-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.ip-value {
    font-weight: 700;
    word-break: break-all;
}

.ip-value.ipv4 {
    color: #2ecc71;
    font-size: 0.9rem;
}

.ip-value.ipv6 {
    color: #3498db;
    font-size: 0.8rem;
}

.ip-row.coords {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #333;
}

.ip-row.coords .ip-label {
    font-size: 0.6rem;
}

.system-info {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #333;
    font-size: 0.7rem;
    color: #888;
    text-align: center;
}

@media (min-width: 480px) {
    .ip-row {
        flex-direction: row;
        align-items: baseline;
        text-align: left;
        gap: 10px;
    }
    
    .ip-label {
        min-width: 45px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .ip-widget-dark {
        padding: 12px;
        min-height: 160px;
    }
    
    .ip-value.ipv4 {
        font-size: 0.8rem;
    }
    
    .ip-value.ipv6 {
        font-size: 0.7rem;
    }
}

.widget-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.widget-title i {
    margin-right: 6px;
    color: #003f2d;
}

.conn-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 6px 0;
    text-align: center;
}

.conn-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conn-value {
    font-weight: 700;
    word-break: break-all;
    margin-top: 2px;
}

.conn-value.ipv4 {
    color: #27ae60;
    font-size: 0.9rem;
}

.conn-value.ipv6 {
    color: #2980b9;
    font-size: 0.8rem;
}

.conn-row.coords {
    font-size: 0.75rem;
    color: #888;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

@media (min-width: 480px) {
    .conn-row {
        flex-direction: row;
        align-items: baseline;
        text-align: left;
        gap: 8px;
    }
    
    .conn-label {
        min-width: 45px;
    }
}

/* ============================================
   WIDGET DE CLIMA - MODERNO
   ============================================ */

.clima-card-wrapper .widget-content {
    padding: 0;
    height: auto;
}

.clima-card {
    background: linear-gradient(135deg, #87ceeb 0%, #4682b4 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.3);
    text-align: center;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
}

.clima-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(70, 130, 180, 0.4);
}

.clima-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.clima-icon {
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.clima-temp {
    font-size: 2.8rem;
    font-weight: bold;
    letter-spacing: -1px;
}

.clima-desc {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 8px;
}

.clima-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.clima-city {
    font-weight: 500;
}

/* Ícones de clima coloridos */
.clima-card .fa-sun { color: #ffd700; }
.clima-card .fa-cloud-sun { color: #f0e68c; }
.clima-card .fa-cloud { color: #b0c4de; }
.clima-card .fa-smog { color: #c0c0c0; }
.clima-card .fa-cloud-rain { color: #87ceeb; }
.clima-card .fa-cloud-showers-heavy { color: #4682b4; }
.clima-card .fa-snowflake { color: #e0ffff; }
.clima-card .fa-bolt { color: #ffd700; }

/* Responsivo */
@media (max-width: 768px) {
    .clima-card {
        padding: 15px;
        min-height: 150px;
    }
    
    .clima-icon {
        font-size: 2.5rem;
    }
    
    .clima-temp {
        font-size: 2.2rem;
    }
    
    .clima-desc {
        font-size: 1rem;
    }
}

/* ============================================
   WIDGET DE CLIMA (header - legado)
   ============================================ */

.weather-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 25px;
    margin-left: auto;
    color: white;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.weather-widget:hover {
    background: rgba(255, 255, 255, 0.25);
}

.weather-widget i {
    font-size: 1.2rem;
    color: #f1c40f;
}

.weather-temp {
    font-weight: bold;
    font-size: 1rem;
}

.weather-city {
    font-size: 0.8rem;
    opacity: 0.9;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



/* Mobile para clima e notícias */
@media (max-width: 768px) {
    .weather-widget {
        padding: 4px 8px;
        font-size: 0.75rem;
        margin-left: auto;
        order: 2;
        white-space: nowrap;
    }
    
    .weather-city {
        max-width: 80px;
        font-size: 0.7rem;
    }
    
    .weather-temp {
        font-size: 0.9rem;
    }
    
    .weather-widget i {
        font-size: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem;
        width: 100%;
        padding: 0 10px;
    }
    
    .contact-item {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        margin: 0;
    }
    
    .contact-item i {
        font-size: 1rem;
    }
    
    .contact-item span {
        font-size: 0.9rem;
    }
    
    .contact-item p {
        font-size: 0.8rem;
    }
    
    .contact-item p b {
        font-size: 0.85rem;
    }
}
