/*
Theme Name: Cripto Media Pro
Theme URI: https://cripto.media
Author: Cripto Media
Description: Tema profesional para portal de noticias crypto con páginas pre-configuradas, calculadoras interactivas, glosario completo y más.
Version: 2.0
License: GPL v2 or later
Text Domain: cripto-media
*/

/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --bitcoin-orange: #f7931a;
    --bitcoin-orange-dark: #e8850f;
    --crypto-green: #00c853;
    --crypto-red: #ff1744;
    --dark-bg: #1a1a2e;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #888;
    --border-color: #eee;
    --bg-light: #f8f9fa;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

a {
    color: var(--bitcoin-orange);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--bitcoin-orange);
}

.site-logo a {
    color: inherit;
    text-decoration: none;
}

.site-logo img {
	    height: 60px;
	    width: auto;
}
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--bitcoin-orange);
    text-decoration: none;
}

/* ============================================
   CRYPTO TICKER
   ============================================ */
.crypto-ticker {
    background: var(--dark-bg);
    overflow: hidden;
    padding: 10px 0;
}

.ticker-track {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 25px;
    white-space: nowrap;
    color: white;
}

.ticker-symbol {
    font-weight: bold;
    color: var(--bitcoin-orange);
}

.ticker-price {
    font-family: 'Roboto Mono', monospace;
}

.ticker-change {
    font-size: 0.85em;
}

.ticker-change.positive { color: var(--crypto-green); }
.ticker-change.negative { color: var(--crypto-red); }

/* ============================================
   MAIN LAYOUT
   ============================================ */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.content-area {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

@media (max-width: 900px) {
    .site-content {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
}

/* ============================================
   ARTICLES & POSTS
   ============================================ */
.post-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.post-card-content {
    padding: 20px;
}

.post-card-title {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.post-card-title a {
    color: var(--text-dark);
}

.post-card-title a:hover {
    color: var(--bitcoin-orange);
}

.post-card-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
}

.post-card-meta {
    font-size: 0.85em;
    color: var(--text-muted);
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */
.widget {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.widget-title {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bitcoin-orange);
    font-size: 1.1em;
}

/* Crypto Widget */
.crypto-widget .widget-coin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.crypto-widget .widget-coin:last-child {
    border-bottom: none;
}

.coin-name {
    font-weight: bold;
}

.coin-price {
    font-family: 'Roboto Mono', monospace;
}

.coin-change {
    font-size: 0.85em;
    font-weight: 500;
}

.coin-change.positive { color: var(--crypto-green); }
.coin-change.negative { color: var(--crypto-red); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark-bg);
    color: white;
    padding: 50px 20px 20px;
    margin-top: 50px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--bitcoin-orange);
    margin: 0 0 20px 0;
}

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

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--bitcoin-orange);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: rgba(255,255,255,0.6);
}

.footer-disclaimer {
    font-size: 0.85em;
    margin-top: 10px;
}

/* ============================================
   BUTTONS & FORMS
   ============================================ */
.btn, button[type="submit"], input[type="submit"] {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, var(--bitcoin-orange-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(247, 147, 26, 0.4);
    text-decoration: none;
    color: white;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--bitcoin-orange);
    outline: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-orange { color: var(--bitcoin-orange); }
.bg-light { background: var(--bg-light); }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }

/* Page titles */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    color: var(--text-dark);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
