/*
Theme Name: Virtus Palilula Modern
Theme URI: https://palilula.info
Description: Modernizovana child tema za Palilula.info bazirana na Virtus temi
Author: Palilula.info
Template: virtus
Version: 1.0.0
Text Domain: virtus-palilula
*/

/* ==========================
   RESET / BASE
========================== */

:root{
  --bg:#ffffff;
  --surface:#f6f7f9;
  --surface-2:#eef2f7;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --accent:#2563eb;
  --accent-dark:#1d4ed8;
  --radius:18px;
  --radius-lg:24px;
  --shadow:0 12px 40px rgba(17,24,39,.08);
  --shadow-lg:0 20px 60px rgba(17,24,39,.12);
  --container:1280px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

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

a{
  color:inherit;
  text-decoration:none;
}

.container,
.site-container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

/* ==========================
   HEADER
========================== */

.site-header,
.header,
#masthead{
  position:sticky;
  top:0;
  z-index:999;
  backdrop-filter:blur(14px);
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(229,231,235,.8);
}

.site-header .container,
.header .container,
#masthead .container{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.site-title,
.logo,
.custom-logo-link{
  font-weight:800;
  letter-spacing:-0.02em;
}

/* ==========================
   HERO
========================== */

.p-hero{
  padding:40px 0 24px;
}

.p-hero-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:32px;
  align-items:start;
}

.p-hero-main .p-card{
  border:none;
  box-shadow:none;
}

.p-hero-main .p-card-image img{
  width:100%;
  height:620px;
  object-fit:cover;
  border-radius:var(--radius-lg);
}

.p-hero-main .p-card-title{
  font-size:2.8rem;
  line-height:1.05;
  margin:22px 0 14px;
  letter-spacing:-0.04em;
}

.p-hero-main .p-card-excerpt{
  font-size:1.06rem;
  color:var(--muted);
  max-width:92%;
}

/* ==========================
   SIDEBAR
========================== */

.p-side-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
  margin-bottom:24px;
}

.p-side-card.p-dark{
  background:#111827;
  border-color:#111827;
  color:#fff;
}

.p-side-title{
  font-size:1.2rem;
  font-weight:800;
  margin-bottom:18px;
  letter-spacing:-0.02em;
}

.p-side-item{
  padding:16px 0;
  border-bottom:1px solid var(--border);
}

.p-side-item:last-child{
  border-bottom:none;
}

.p-side-item a{
  display:block;
  font-weight:700;
  line-height:1.35;
  transition:.2s ease;
}

.p-side-item a:hover{
  color:var(--accent);
}

.p-side-item span{
  display:block;
  margin-top:6px;
  font-size:.86rem;
  color:var(--muted);
}

.p-dark .p-side-item{
  border-bottom:1px solid rgba(255,255,255,.12);
}

.p-dark .p-side-item a:hover{
  color:#93c5fd;
}

.p-dark .p-side-item span{
  color:rgba(255,255,255,.68);
}

.p-trending{
  margin:0;
  padding-left:22px;
}

.p-trending li{
  margin:12px 0;
}

.p-trending a{
  font-weight:700;
  line-height:1.4;
}

/* ==========================
   SECTIONS
========================== */

.p-section{
  margin:72px 0;
}

.p-section-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:28px;
}

.p-section-title{
  font-size:2rem;
  font-weight:800;
  letter-spacing:-0.03em;
  margin:0;
}

.p-more{
  color:var(--accent);
  font-weight:700;
}

.p-more:hover{
  color:var(--accent-dark);
}

/* ==========================
   GRID
========================== */

.p-grid{
  display:grid;
  gap:24px;
}

.p-grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.p-grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.p-grid-4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

/* ==========================
   CARDS
========================== */

.p-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.p-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
  border-color:#d1d5db;
}

.p-card-image{
  display:block;
}

.p-card-image img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.p-card-placeholder{
  width:100%;
  height:220px;
  background:linear-gradient(135deg,#e5e7eb,#f3f4f6);
}

.p-card-content{
  padding:18px;
}

.p-card-meta{
  font-size:.82rem;
  color:var(--muted);
  margin-bottom:10px;
}

.p-card-title{
  font-size:1.18rem;
  line-height:1.3;
  margin:0 0 10px;
  letter-spacing:-0.02em;
}

.p-card-title a{
  transition:.2s ease;
}

.p-card-title a:hover{
  color:var(--accent);
}

.p-card-excerpt{
  margin:0;
  color:var(--muted);
  font-size:.95rem;
}

.p-card-small .p-card-image img{
  height:180px;
}

/* ==========================
   BUSINESS SECTION
========================== */

.p-business{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:32px;
}

.p-business-placeholder{
  padding:28px;
  border:2px dashed #cbd5e1;
  border-radius:16px;
  color:var(--muted);
  text-align:center;
  background:#fff;
}

/* ==========================
   BUTTONS
========================== */

.button,
.wp-block-button__link{
  background:var(--accent);
  color:#fff;
  border-radius:999px;
  padding:12px 20px;
  font-weight:700;
}

.button:hover,
.wp-block-button__link:hover{
  background:var(--accent-dark);
}

/* ==========================
   FOOTER
========================== */

.site-footer,
.footer,
#colophon{
  margin-top:80px;
  padding:48px 0;
  background:#0f172a;
  color:#e5e7eb;
}

.site-footer a,
.footer a,
#colophon a{
  color:#fff;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width:1200px){
  .p-grid-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .p-hero-main .p-card-title{
    font-size:2.3rem;
  }
}

@media (max-width:1024px){
  .p-hero-grid{
    grid-template-columns:1fr;
  }

  .p-grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .p-grid-2{
    grid-template-columns:1fr;
  }

  .p-hero-main .p-card-image img{
    height:500px;
  }
}

@media (max-width:768px){
  .container,
  .site-container{
    padding:0 18px;
  }

  .p-grid-3,
  .p-grid-4{
    grid-template-columns:1fr;
  }

  .p-section{
    margin:56px 0;
  }

  .p-section-title{
    font-size:1.6rem;
  }

  .p-hero{
    padding:28px 0 12px;
  }

  .p-hero-main .p-card-image img{
    height:360px;
  }

  .p-hero-main .p-card-title{
    font-size:1.9rem;
  }

  .p-business{
    padding:24px;
  }

  .p-side-card{
    padding:20px;
  }
}




/* ==========================
   PREMIUM FOOTER
========================== */

.p-footer{
    background:#0b1220;
    color:#e5e7eb;
    margin-top:96px;
    padding:72px 0 32px;
}

.p-footer a{
    color:#f8fafc;
    transition:.2s ease;
}

.p-footer a:hover{
    color:#93c5fd;
}

.p-footer-top{
    display:grid;
    grid-template-columns:1.3fr 2fr;
    gap:56px;
    padding-bottom:48px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.p-footer-brand h2{
    margin:0 0 16px;
    font-size:36px;
    font-weight:900;
    letter-spacing:-.04em;
}

.p-footer-brand p{
    margin:0;
    color:#94a3b8;
    max-width:420px;
    line-height:1.8;
}

.p-footer-columns{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:32px;
}

.p-footer-col h4{
    margin:0 0 18px;
    font-size:15px;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#fff;
}

.p-footer-col ul{
    list-style:none;
    margin:0;
    padding:0;
}

.p-footer-col li{
    margin:12px 0;
}

.p-footer-newsletter{
    margin:40px 0;
    padding:32px;
    border-radius:24px;
    background:linear-gradient(135deg,#111827,#1f2937);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.p-newsletter-text h3{
    margin:0 0 8px;
    font-size:28px;
    color:#fff;
}

.p-newsletter-text p{
    margin:0;
    color:#94a3b8;
}

.p-newsletter-form{
    display:flex;
    gap:12px;
    width:100%;
    max-width:520px;
}

.p-newsletter-form input{
    flex:1;
    min-height:54px;
    border:none;
    border-radius:999px;
    padding:0 18px;
    background:#fff;
}

.p-newsletter-form button{
    min-height:54px;
    padding:0 22px;
    border:none;
    border-radius:999px;
    background:#2563eb;
    color:#fff;
    font-weight:800;
    cursor:pointer;
}

.p-newsletter-form button:hover{
    background:#1d4ed8;
}

.p-footer-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding-top:28px;
    border-top:1px solid rgba(255,255,255,.08);
    color:#94a3b8;
    font-size:14px;
}

.p-footer-social{
    display:flex;
    gap:18px;
}

@media (max-width:1024px){
    .p-footer-top{
        grid-template-columns:1fr;
    }

    .p-footer-columns{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .p-footer-newsletter{
        flex-direction:column;
        align-items:flex-start;
    }

    .p-newsletter-form{
        max-width:none;
    }
}

@media (max-width:640px){
    .p-footer-columns{
        grid-template-columns:1fr;
    }

    .p-newsletter-form{
        flex-direction:column;
    }

    .p-footer-bottom{
        flex-direction:column;
        align-items:flex-start;
    }
}

