/* Políticos en Tendencia — Public Styles */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --pt-bg:        #070a10;
    --pt-surface:   #0f1420;
    --pt-surface2:  #161c2e;
    --pt-border:    #1f2d4a;
    --pt-gold:      #f5a623;
    --pt-gold2:     #ffd97d;
    --pt-red:       #e03c3c;
    --pt-blue:      #3b7ef5;
    --pt-text:      #edf2ff;
    --pt-muted:     #5e718c;
    --pt-radius:    14px;
    --pt-card-w:    260px;
}

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

.pt-app {
    font-family: 'Inter', sans-serif;
    background: var(--pt-bg);
    color: var(--pt-text);
    min-height: 100vh;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.pt-hero {
    position: relative;
    padding: 80px 40px 60px;
    text-align: center;
    overflow: hidden;
}
.pt-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245,166,35,.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(59,126,245,.12) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 30 L 30 0 L 60 30 L 30 60 Z' fill='none' stroke='rgba(255,255,255,.015)' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}
.pt-hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.pt-hero-eyebrow {
    display: inline-block;
    background: rgba(245,166,35,.15);
    color: var(--pt-gold);
    border: 1px solid rgba(245,166,35,.3);
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.pt-hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(56px, 10vw, 96px);
    line-height: .95;
    letter-spacing: .02em;
    color: var(--pt-text);
    margin-bottom: 18px;
}
.pt-hero-title span { color: var(--pt-gold); }
.pt-hero-sub { color: var(--pt-muted); font-size: 17px; line-height: 1.6; margin-bottom: 36px; }

/* Search bar */
.pt-search-bar {
    display: flex; align-items: center;
    background: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    max-width: 540px; margin: 0 auto 24px;
    gap: 10px;
    transition: border-color .2s;
}
.pt-search-bar:focus-within { border-color: var(--pt-gold); }
.pt-search-icon { font-size: 16px; }
.pt-search-bar input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--pt-text); font-size: 15px; font-family: 'Inter', sans-serif;
}
.pt-search-bar input::placeholder { color: var(--pt-muted); }
.pt-search-bar button {
    background: var(--pt-gold); color: #000; font-weight: 700;
    border: none; border-radius: 40px; padding: 10px 22px;
    cursor: pointer; font-size: 14px; transition: background .2s;
}
.pt-search-bar button:hover { background: var(--pt-gold2); }

/* Filters */
.pt-hero-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pt-filter-select {
    background: var(--pt-surface2); border: 1px solid var(--pt-border);
    color: var(--pt-text); border-radius: 8px; padding: 9px 14px;
    font-size: 13px; font-family: 'Inter', sans-serif; cursor: pointer; outline: none;
    transition: border-color .2s;
}
.pt-filter-select:focus { border-color: var(--pt-gold); }

/* ── Trending strip ─────────────────────────────────────────────────────────── */
.pt-trending-section { padding: 10px 40px 40px; }
.pt-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.pt-section-header h2 {
    font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700;
    color: var(--pt-text);
}
.pt-section-header span { font-size: 13px; color: var(--pt-muted); }

.pt-trending-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.pt-trending-strip::-webkit-scrollbar { height: 4px; }
.pt-trending-strip::-webkit-scrollbar-track { background: var(--pt-surface); }
.pt-trending-strip::-webkit-scrollbar-thumb { background: var(--pt-border); border-radius: 2px; }

.pt-trending-chip {
    display: flex; align-items: center; gap: 10px;
    background: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-radius: 50px;
    padding: 8px 18px 8px 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
    flex-shrink: 0;
}
.pt-trending-chip:hover { border-color: var(--pt-gold); transform: translateY(-2px); }
.pt-trending-chip img {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(245,166,35,.4);
}
.pt-trending-chip span { color: var(--pt-text); font-size: 14px; font-weight: 600; }
.pt-trending-chip em { color: var(--pt-muted); font-style: normal; font-size: 12px; }

/* ── Cards Grid ─────────────────────────────────────────────────────────────── */
.pt-grid-section { padding: 0 40px 80px; }

.pt-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--pt-card-w), 1fr));
    gap: 20px;
}

.pt-card {
    background: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    overflow: hidden;
    position: relative;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    animation: ptCardIn .4s ease both;
}
.pt-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245,166,35,.4);
    box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 0 1px rgba(245,166,35,.1);
}
@keyframes ptCardIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

.pt-card-fire {
    position: absolute; top: 10px; right: 10px;
    background: rgba(245,166,35,.2); border: 1px solid rgba(245,166,35,.4);
    border-radius: 20px; padding: 2px 8px; font-size: 12px; z-index: 2;
}
.pt-card-link { display: block; text-decoration: none; color: inherit; }

.pt-card-photo-wrap {
    position: relative;
    width: 100%; height: 200px;
    overflow: hidden;
    background: var(--pt-surface2);
}
.pt-card-photo {
    width: 100%; height: 100%; object-fit: cover; object-position: top;
    transition: transform .4s;
}
.pt-card:hover .pt-card-photo { transform: scale(1.05); }
.pt-card-photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 60px;
}
.pt-card-ideo-dot {
    position: absolute; bottom: 10px; left: 10px;
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3);
}
.pt-ideo-dot-izquierda, .pt-ideo-dot-extrema-izquierda { background: #5ba4f5; }
.pt-ideo-dot-derecha, .pt-ideo-dot-extrema-derecha { background: #f57f7f; }
.pt-ideo-dot-centro { background: #d4b84a; }
.pt-ideo-dot-centro-izquierda { background: #6bb8f0; }
.pt-ideo-dot-centro-derecha { background: #f09060; }
.pt-ideo-dot-libertarismo { background: #60c090; }
.pt-ideo-dot-verde { background: #50c060; }

.pt-card-body { padding: 16px; }
.pt-card-name {
    font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700;
    color: var(--pt-text); margin-bottom: 4px; line-height: 1.2;
}
.pt-card-cargo { font-size: 12px; color: var(--pt-muted); margin-bottom: 10px; line-height: 1.4; }
.pt-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.pt-tag {
    display: inline-block;
    background: var(--pt-surface2);
    border: 1px solid var(--pt-border);
    color: var(--pt-muted);
    border-radius: 6px; padding: 3px 8px; font-size: 11px;
}
.pt-card-ideo {
    display: inline-block; border-radius: 6px;
    padding: 3px 10px; font-size: 11px; font-weight: 600;
}
/* Ideology colors */
.pt-ideo-bg-izquierda, .pt-ideo-bg-extrema-izquierda { background: rgba(91,164,245,.15); color: #5ba4f5; }
.pt-ideo-bg-derecha, .pt-ideo-bg-extrema-derecha { background: rgba(245,127,127,.15); color: #f57f7f; }
.pt-ideo-bg-centro { background: rgba(212,184,74,.15); color: #d4b84a; }
.pt-ideo-bg-centro-izquierda { background: rgba(107,184,240,.15); color: #6bb8f0; }
.pt-ideo-bg-centro-derecha { background: rgba(240,144,96,.15); color: #f09060; }
.pt-ideo-bg-libertarismo { background: rgba(96,192,144,.15); color: #60c090; }
.pt-ideo-bg-verde { background: rgba(80,192,96,.15); color: #50c060; }

.pt-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--pt-border);
    background: rgba(0,0,0,.15);
}
.pt-card-stats { display: flex; gap: 12px; font-size: 12px; color: var(--pt-muted); }
.pt-vote-btn {
    background: rgba(245,166,35,.12); color: var(--pt-gold);
    border: 1px solid rgba(245,166,35,.3); border-radius: 20px;
    padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
    transition: all .2s;
}
.pt-vote-btn:hover { background: rgba(245,166,35,.25); }
.pt-vote-btn.voted { background: rgba(245,166,35,.3); cursor: default; }

/* No results */
.pt-no-results {
    text-align: center; padding: 80px 20px;
    color: var(--pt-muted); font-size: 18px;
}

/* ── Profile page ───────────────────────────────────────────────────────────── */
.pt-profile-page { background: var(--pt-bg); min-height: 100vh; color: var(--pt-text); }

.pt-profile-hero {
    position: relative; overflow: hidden;
    padding: 60px 40px 50px;
    min-height: 400px;
    display: flex; align-items: flex-end;
}
.pt-profile-bg-blur {
    position: absolute; inset: -20px;
    background-size: cover; background-position: center top;
    filter: blur(24px) brightness(.3) saturate(1.4);
    transform: scale(1.05);
}
.pt-profile-bg-blur::after {
    content:''; position:absolute; inset:0;
    background: linear-gradient(to bottom, transparent 0%, var(--pt-bg) 85%);
}
.pt-profile-hero-inner {
    position: relative; z-index: 1;
    display: flex; gap: 36px; align-items: flex-end;
    max-width: 900px; width: 100%;
}
.pt-profile-photo-wrap { position: relative; flex-shrink: 0; }
.pt-profile-photo {
    width: 160px; height: 160px; border-radius: 16px; object-fit: cover; object-position: top;
    border: 3px solid rgba(245,166,35,.5);
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.pt-profile-photo-ph {
    width: 160px; height: 160px; border-radius: 16px; font-size: 70px;
    background: var(--pt-surface2); display: flex; align-items: center; justify-content: center;
}
.pt-profile-badge-trend {
    position: absolute; top: -10px; right: -10px;
    background: rgba(245,166,35,.9); color: #000; font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
}
.pt-profile-info { flex: 1; }
.pt-profile-ideo-badge {
    display: inline-block; border-radius: 6px;
    padding: 4px 12px; font-size: 12px; font-weight: 700;
    margin-bottom: 10px; letter-spacing: .04em;
}
.pt-profile-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5vw, 60px); letter-spacing: .02em;
    line-height: 1; color: var(--pt-text); margin-bottom: 8px;
}
.pt-profile-cargo { font-size: 16px; color: var(--pt-gold); font-weight: 600; margin-bottom: 14px; }
.pt-profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.pt-profile-numbers {
    display: flex; gap: 28px; margin-bottom: 24px;
}
.pt-profile-stat { display: flex; flex-direction: column; gap: 2px; }
.pt-profile-stat-num {
    font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 800; color: var(--pt-gold);
    line-height: 1;
}
.pt-profile-stat span:last-child { font-size: 13px; color: var(--pt-muted); text-transform: uppercase; letter-spacing: .06em; }

.pt-profile-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pt-vote-btn-big {
    background: var(--pt-gold); color: #000; font-family: 'Syne', sans-serif;
    font-weight: 700; font-size: 15px; border: none; border-radius: 10px;
    padding: 14px 28px; cursor: pointer; transition: all .2s;
}
.pt-vote-btn-big:hover { background: var(--pt-gold2); transform: translateY(-2px); }
.pt-vote-btn-big.voted { background: var(--pt-surface2); color: var(--pt-muted); cursor: default; transform: none; }
.pt-social-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 20px; border-radius: 10px; text-decoration: none;
    font-size: 14px; font-weight: 600; transition: all .2s;
    border: 1px solid var(--pt-border);
}
.pt-twitter { background: rgba(29,161,242,.1); color: #1da1f2; border-color: rgba(29,161,242,.3); }
.pt-facebook { background: rgba(24,119,242,.1); color: #1877f2; border-color: rgba(24,119,242,.3); }

.pt-profile-body {
    max-width: 900px; margin: 0 auto; padding: 40px 40px 80px;
}
.pt-profile-section { margin-bottom: 48px; }
.pt-profile-section h2 {
    font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700;
    color: var(--pt-text); margin-bottom: 18px;
    padding-bottom: 12px; border-bottom: 1px solid var(--pt-border);
}
.pt-profile-bio { font-size: 16px; line-height: 1.8; color: #a0b0c8; }

.pt-data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pt-data-item {
    background: var(--pt-surface); border: 1px solid var(--pt-border);
    border-radius: 10px; padding: 16px;
    display: flex; flex-direction: column; gap: 6px;
}
.pt-data-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--pt-muted); }
.pt-data-val { font-size: 15px; font-weight: 600; color: var(--pt-text); }

.pt-profile-back { margin-top: 20px; }
.pt-profile-back a { color: var(--pt-muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.pt-profile-back a:hover { color: var(--pt-gold); }

/* Toast */
.pt-toast {
    position: fixed; bottom: 28px; right: 28px; z-index: 9999;
    background: var(--pt-gold); color: #000; font-weight: 700; font-size: 14px;
    padding: 14px 22px; border-radius: 10px;
    animation: ptToastIn .25s ease;
    pointer-events: none;
}
.pt-toast-err { background: var(--pt-red); color: #fff; }
@keyframes ptToastIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

/* Responsive */
@media (max-width: 768px) {
    .pt-hero { padding: 60px 20px 40px; }
    .pt-grid-section, .pt-trending-section { padding-left: 16px; padding-right: 16px; }
    .pt-hero-filters { flex-direction: column; align-items: stretch; }
    .pt-filter-select { width: 100%; }
    .pt-cards-grid { --pt-card-w: 100%; }
    .pt-profile-hero { padding: 40px 20px; }
    .pt-profile-hero-inner { flex-direction: column; align-items: center; text-align: center; }
    .pt-profile-photo { width: 120px; height: 120px; }
    .pt-profile-tags { justify-content: center; }
    .pt-profile-numbers { justify-content: center; }
    .pt-profile-body { padding: 24px 16px 60px; }
}
