/*!
Theme Name: Kava Child
Theme URI:
Author: Zemez
Author URI:
Description: Kava child theme - OnlyTrees jõulukuuskede hääletusplatvorm.
Template: kava
Version: 1.1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kava-child
*/

:root {
    --ot-bg-dark: #0b1a0f;
    --ot-bg-card: #132218;
    --ot-bg-card-hover: #1a3025;
    --ot-primary: #2d8a4e;
    --ot-primary-light: #3fb06a;
    --ot-primary-dark: #1e6b38;
    --ot-accent: #e8c547;
    --ot-accent-hover: #f0d264;
    --ot-text: #e8ede9;
    --ot-text-muted: #8fa896;
    --ot-text-dark: #5a7a63;
    --ot-border: #1f3a28;
    --ot-danger: #e74c3c;
    --ot-success: #27ae60;
    --ot-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ot-radius: 16px;
    --ot-radius-sm: 10px;
    --ot-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --ot-shadow-hover: 0 8px 40px rgba(45, 138, 78, 0.2);
}
body.page, body.single-joulukuusk, body.post-type-archive-joulukuusk, body.tax-linn { background-color: var(--ot-bg-dark) !important; color: var(--ot-text); font-family: var(--ot-font); }
/* ===== HERO SECTION ===== */
.ot-hero-section { position: relative; width: 100vw !important; max-width: 100vw !important; margin-left: calc(-50vw + 50%) !important; min-height: 85vh; display: flex; align-items: center; justify-content: center; background: url('https://onlytrees.xn--julukuusk-q7a.ee/wp-content/uploads/2026/04/onlytrees-scaled.jpg') center center / cover no-repeat; overflow: hidden; padding: 60px 20px; }
.ot-hero-bg-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(11,26,15,0.55) 0%, rgba(11,26,15,0.75) 100%); z-index: 1; }
.ot-hero-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; text-align: center; }
.ot-hero-title { font-size: clamp(36px, 6vw, 64px); font-weight: 900; color: #fff; margin: 0 0 12px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); line-height: 1.1; }
.ot-hero-subtitle { font-size: clamp(16px, 2.5vw, 22px); color: rgba(255,255,255,0.85); margin: 0 0 40px; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.ot-hero-winner-card { background: rgba(0,0,0,0.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 2px solid rgba(232,197,71,0.4); border-radius: 20px; padding: 0; max-width: 380px; margin: 0 auto 40px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.ot-hero-winner-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(232,197,71,0.2); }
.ot-winner-badge { background: linear-gradient(135deg, #e8c547, #ffd700); color: #1a1a2e; font-weight: 800; font-size: 14px; padding: 10px 20px; text-align: center; text-transform: uppercase; letter-spacing: 1px; }
.ot-winner-img { width: 100%; height: 240px; background-size: cover; background-position: center; }
.ot-winner-img-placeholder { display: flex; align-items: center; justify-content: center; font-size: 80px; background: linear-gradient(135deg, #0f2816, #1a3a22); }
.ot-winner-name { color: #fff; font-size: 22px; font-weight: 800; margin: 16px 20px 6px; }
.ot-winner-city { display: block; color: #8fa896; font-size: 14px; padding: 0 20px; }
.ot-winner-author { display: block; color: #6a8a72; font-size: 13px; padding: 4px 20px 0; }
.ot-winner-votes { font-size: 24px; font-weight: 800; color: var(--xmas-gold, #e8c547); padding: 12px 20px 6px; }
.ot-winner-link { display: block; text-align: center; padding: 14px 20px; color: var(--xmas-gold, #e8c547); font-weight: 700; text-decoration: none; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 8px; transition: background 0.3s; }
.ot-winner-link:hover { background: rgba(232,197,71,0.1); color: #ffd700; text-decoration: none; }
.ot-hero-stats { display: flex; justify-content: center; gap: 40px; }
.ot-hero-stats .ot-stat { display: flex; flex-direction: column; align-items: center; }
.ot-hero-stats .ot-stat-num { font-size: 36px; font-weight: 800; color: var(--xmas-gold, #e8c547); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.ot-hero-stats .ot-stat-label { font-size: 13px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 768px) { .ot-hero-section { min-height: 70vh; padding: 40px 16px; } .ot-hero-title { font-size: 32px; } .ot-hero-stats { gap: 24px; } .ot-hero-stats .ot-stat-num { font-size: 28px; } .ot-hero-winner-card { max-width: 320px; } }
.ot-cities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 20px 0; }
.ot-city-card { background: var(--ot-bg-card); border: 1px solid var(--ot-border); border-radius: var(--ot-radius); padding: 32px 24px; text-align: center; text-decoration: none; color: var(--ot-text); transition: all 0.3s ease; position: relative; overflow: hidden; }
.ot-city-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--ot-primary), var(--ot-accent)); opacity: 0; transition: opacity 0.3s ease; }
.ot-city-card:hover { background: var(--ot-bg-card-hover); transform: translateY(-4px); box-shadow: var(--ot-shadow-hover); text-decoration: none; color: #fff; }
.ot-city-card:hover::before { opacity: 1; }
.ot-city-icon { font-size: 40px; margin-bottom: 12px; }
.ot-city-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.ot-city-card p { font-size: 14px; color: var(--ot-text-muted); margin: 0 0 12px; }
.ot-city-count { display: inline-block; background: rgba(45, 138, 78, 0.15); color: var(--ot-primary-light); padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.ot-sort-bar { display: inline-flex; gap: 8px; margin-bottom: 24px; padding: 4px; background: var(--ot-bg-card); border-radius: 50px; }
.ot-sort-btn { padding: 10px 24px; border-radius: 50px; border: none; background: transparent; color: var(--ot-text-muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 6px; }
.ot-sort-btn.active, .ot-sort-btn:hover { background: var(--ot-primary); color: #fff; }
.ot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; padding: 20px 0; }
.ot-card { background: var(--ot-bg-card); border: 1px solid var(--ot-border); border-radius: var(--ot-radius); overflow: hidden; transition: all 0.3s ease; }
.ot-card:hover { transform: translateY(-4px); box-shadow: var(--ot-shadow-hover); border-color: rgba(45, 138, 78, 0.3); }
.ot-card-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0a150d; }
.ot-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ot-card:hover .ot-card-image img { transform: scale(1.05); }
.ot-no-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--ot-bg-card); color: var(--ot-text-dark); font-size: 48px; }
.ot-card-score { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ot-card-score.positive { color: var(--ot-success); }
.ot-card-score.negative { color: var(--ot-danger); }
.ot-card-body { padding: 16px 20px 20px; }
.ot-card-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-card-meta { display: flex; gap: 16px; margin-bottom: 16px; font-size: 13px; color: var(--ot-text-muted); }
.ot-card-meta i { margin-right: 4px; color: var(--ot-primary-light); }
.ot-card-actions { display: flex; gap: 8px; }
.ot-vote-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--ot-border); border-radius: var(--ot-radius-sm); background: rgba(255, 255, 255, 0.03); color: var(--ot-text-muted); font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.ot-vote-btn:hover:not(:disabled) { border-color: rgba(45, 138, 78, 0.5); }
.ot-vote-up:hover:not(:disabled), .ot-vote-up.active { background: rgba(39, 174, 96, 0.15); border-color: var(--ot-success); color: var(--ot-success); }
.ot-vote-down:hover:not(:disabled), .ot-vote-down.active { background: rgba(231, 76, 60, 0.15); border-color: var(--ot-danger); color: var(--ot-danger); }
.ot-vote-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.ot-vote-btn i { font-size: 14px; }
.ot-vote-btn.voting { animation: votePulse 0.4s ease; }
@keyframes votePulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
.ot-upload-section { background: var(--ot-bg-card); border: 1px solid var(--ot-border); border-radius: var(--ot-radius); padding: 40px; margin: 40px 0; }
.ot-upload-header { text-align: center; margin-bottom: 32px; }
.ot-upload-header i { font-size: 48px; color: var(--ot-primary-light); margin-bottom: 16px; display: block; }
.ot-upload-header h3 { font-size: 24px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.ot-upload-header p { color: var(--ot-text-muted); margin: 0; }
.ot-upload-form { max-width: 600px; margin: 0 auto; }
.ot-form-group { margin-bottom: 20px; }
.ot-form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--ot-text); margin-bottom: 8px; }
.ot-form-group input[type="text"], .ot-form-group select { width: 100%; padding: 12px 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--ot-border); border-radius: var(--ot-radius-sm); color: var(--ot-text); font-size: 15px; font-family: var(--ot-font); transition: border-color 0.3s ease; box-sizing: border-box; }
.ot-form-group input[type="text"]:focus, .ot-form-group select:focus { outline: none; border-color: var(--ot-primary); box-shadow: 0 0 0 3px rgba(45, 138, 78, 0.1); }
.ot-form-group select option { background: var(--ot-bg-dark); color: var(--ot-text); }
.ot-file-upload { border: 2px dashed var(--ot-border); border-radius: var(--ot-radius-sm); padding: 40px 20px; text-align: center; cursor: pointer; transition: all 0.3s ease; position: relative; }
.ot-file-upload:hover, .ot-file-upload.dragover { border-color: var(--ot-primary); background: rgba(45, 138, 78, 0.05); }
.ot-file-upload i { font-size: 36px; color: var(--ot-text-dark); margin-bottom: 12px; display: block; }
.ot-file-upload p { color: var(--ot-text-muted); margin: 0 0 4px; }
.ot-file-upload span { color: var(--ot-primary-light); text-decoration: underline; cursor: pointer; }
.ot-file-upload small { color: var(--ot-text-dark); font-size: 12px; }
.ot-file-upload input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ot-image-preview { position: relative; border-radius: var(--ot-radius-sm); overflow: hidden; margin-top: 12px; }
.ot-image-preview img { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--ot-radius-sm); }
.ot-remove-image { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; background: rgba(231, 76, 60, 0.9); border: none; border-radius: 50%; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ot-remove-image:hover { background: var(--ot-danger); }
.ot-submit-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--ot-primary) 0%, var(--ot-primary-light) 100%); color: #fff; border: none; border-radius: var(--ot-radius-sm); font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; font-family: var(--ot-font); }
.ot-submit-btn:hover { box-shadow: 0 4px 20px rgba(45, 138, 78, 0.3); transform: translateY(-1px); }
.ot-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.ot-upload-message { margin-top: 16px; padding: 12px 16px; border-radius: var(--ot-radius-sm); font-size: 14px; text-align: center; }
.ot-upload-message.success { background: rgba(39, 174, 96, 0.15); border: 1px solid rgba(39, 174, 96, 0.3); color: var(--ot-success); }
.ot-upload-message.error { background: rgba(231, 76, 60, 0.15); border: 1px solid rgba(231, 76, 60, 0.3); color: var(--ot-danger); }
.ot-empty-state { text-align: center; padding: 80px 20px; color: var(--ot-text-muted); }
.ot-empty-state i { font-size: 64px; color: var(--ot-text-dark); margin-bottom: 16px; display: block; }
.ot-empty-state p { font-size: 18px; }
@media (max-width: 768px) { .ot-hero-section { padding: 50px 16px; } .ot-hero-stats { gap: 24px; } .ot-stat-number { font-size: 28px; } .ot-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; } .ot-cities-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; } .ot-upload-section { padding: 24px 16px; } .ot-hero-actions { flex-direction: column; align-items: center; } .ot-btn { width: 100%; max-width: 300px; justify-content: center; } }
@media (max-width: 480px) { .ot-grid { grid-template-columns: 1fr; } .ot-cities-grid { grid-template-columns: 1fr 1fr; } }
.page .site-content, .page .site-content .container { background-color: var(--ot-bg-dark); }
.page .entry-content h2, .page .entry-content h3 { color: #fff; }
.page .entry-content p { color: var(--ot-text-muted); }
.page-template-default .entry-header { display: none; }
.page .site-content .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   HEADER - OnlyTrees Dark Theme
   ========================================================================== */

.site-header { background: var(--ot-bg-dark) !important; border-bottom: 1px solid var(--ot-border) !important; position: sticky; top: 0; z-index: 999; }
.site-header::after { display: none !important; }
.site-header .top-panel { background: linear-gradient(90deg, var(--ot-primary-dark) 0%, var(--ot-primary) 100%) !important; padding: 6px 0 !important; font-size: 13px; color: rgba(255,255,255,0.9); font-weight: 500; letter-spacing: 0.3px; }
.site-header .top-panel .top-panel__content { color: rgba(255,255,255,0.9) !important; }
.site-header .site-header__wrap { padding: 12px 0 !important; }
.site-header .site-branding { display: flex; align-items: center; }
.site-header .site-branding .site-title { font-family: var(--ot-font) !important; font-size: 28px !important; font-weight: 900 !important; letter-spacing: -1px; }
.site-header .site-branding .site-title a { color: #fff !important; text-decoration: none !important; transition: color 0.3s ease; }
.site-header .site-branding .site-title a:hover { color: var(--ot-primary-light) !important; }
.site-header .site-description { color: var(--ot-text-muted) !important; font-size: 12px !important; display: none !important; }
.site-header .main-navigation { font-family: var(--ot-font) !important; }
.site-header .main-navigation .menu { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.site-header .main-navigation .menu li { margin: 0 !important; }
.site-header .main-navigation .menu li a { color: var(--ot-text-muted) !important; font-size: 14px !important; font-weight: 600 !important; padding: 8px 16px !important; border-radius: 8px !important; transition: all 0.2s ease !important; text-decoration: none !important; display: block; }
.site-header .main-navigation .menu li a:hover, .site-header .main-navigation .menu li.current-menu-item a { color: #fff !important; background: rgba(45, 138, 78, 0.15) !important; }
.site-header .main-navigation .menu li.current-menu-item a { color: var(--ot-primary-light) !important; }
.site-header .main-navigation .menu-toggle { color: #fff !important; background: transparent !important; border: 1px solid var(--ot-border) !important; border-radius: 8px !important; padding: 8px 12px !important; }
.site-header .main-navigation .menu-toggle:hover { background: rgba(45, 138, 78, 0.15) !important; border-color: var(--ot-primary) !important; }
.site-header .main-navigation .menu-toggle .menu-toggle-icon, .site-header .main-navigation .menu-toggle .menu-toggle-icon::before, .site-header .main-navigation .menu-toggle .menu-toggle-icon::after { background-color: #fff !important; }
.set-menu { display: none !important; }
.page-footer .edit-link { display: none !important; }
.social-list--header a { color: rgba(255,255,255,0.7) !important; }
.social-list--header a:hover { color: #fff !important; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ==========================================================================
   FOOTER - OnlyTrees Dark Theme
   ========================================================================== */

.site-footer { background: var(--ot-bg-dark) !important; border-top: 1px solid var(--ot-border) !important; color: var(--ot-text-muted) !important; display: none !important; }
.page-footer { display: none !important; }
.ot-footer { background: var(--ot-bg-dark); border-top: 1px solid var(--ot-border); padding: 60px 20px 30px; font-family: var(--ot-font); }
.ot-footer-inner { max-width: 1200px; margin: 0 auto; }
.ot-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.ot-footer-brand h3 { font-size: 28px; font-weight: 900; color: #fff; margin: 0 0 12px; letter-spacing: -1px; }
.ot-footer-brand p { color: var(--ot-text-muted); font-size: 14px; line-height: 1.7; margin: 0 0 20px; }
.ot-footer-brand .ot-footer-social { display: flex; gap: 12px; }
.ot-footer-brand .ot-footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--ot-border); color: var(--ot-text-muted); font-size: 16px; transition: all 0.3s ease; text-decoration: none; }
.ot-footer-brand .ot-footer-social a:hover { background: rgba(45, 138, 78, 0.15); border-color: var(--ot-primary); color: var(--ot-primary-light); }
.ot-footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px; }
.ot-footer-col ul { list-style: none; padding: 0; margin: 0; }
.ot-footer-col ul li { margin-bottom: 10px; }
.ot-footer-col ul li a { color: var(--ot-text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.ot-footer-col ul li a:hover { color: var(--ot-primary-light); }
.ot-footer-bottom { border-top: 1px solid var(--ot-border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.ot-footer-bottom p { margin: 0; font-size: 13px; color: var(--ot-text-dark); }
.ot-footer-bottom a { color: var(--ot-text-muted); text-decoration: none; }
.ot-footer-bottom a:hover { color: var(--ot-primary-light); }
.ot-footer-bottom-links { display: flex; gap: 24px; }
.ot-footer-bottom-links a { font-size: 13px; color: var(--ot-text-dark); }
@media (max-width: 768px) { .ot-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .ot-footer-grid { grid-template-columns: 1fr; gap: 32px; } .ot-footer-bottom { flex-direction: column; text-align: center; } }


/* ============================================
   CHRISTMAS WOW EFFECTS
   ============================================ */

/* Snowfall canvas */
#snowfall-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; }

/* Christmas color accents */
:root {
  --xmas-red: #c41e3a;
  --xmas-gold: #e8c547;
  --xmas-green: #2d8a4e;
  --xmas-light-gold: #ffd700;
}

/* Glowing hero title */
.ot-hero-section h1 {
  text-shadow: 0 0 20px rgba(232, 197, 71, 0.4), 0 0 40px rgba(232, 197, 71, 0.2), 0 2px 4px rgba(0,0,0,0.5) !important;
  animation: heroGlow 3s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { text-shadow: 0 0 20px rgba(232, 197, 71, 0.3), 0 0 40px rgba(232, 197, 71, 0.1), 0 2px 4px rgba(0,0,0,0.5); }
  100% { text-shadow: 0 0 30px rgba(232, 197, 71, 0.6), 0 0 60px rgba(232, 197, 71, 0.3), 0 0 80px rgba(196, 30, 58, 0.15), 0 2px 4px rgba(0,0,0,0.5); }
}

/* Hero subtitle sparkle */
.ot-hero-section .ot-hero-subtitle { animation: subtitleFade 2s ease-out forwards; opacity: 0; transform: translateY(10px); }
@keyframes subtitleFade { to { opacity: 1; transform: translateY(0); } }

/* Christmas ornament dots on hero stats */
.ot-hero-stats .ot-stat-number {
  position: relative;
  background: linear-gradient(135deg, var(--xmas-gold), #fff, var(--xmas-gold)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: statPulse 2s ease-in-out infinite alternate;
}
@keyframes statPulse { 0% { transform: scale(1); } 100% { transform: scale(1.05); } }

/* Twinkling lights on hero buttons */
.ot-hero-section .ot-btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--xmas-red), #e63950) !important;
  border: 2px solid var(--xmas-gold) !important;
  box-shadow: 0 0 15px rgba(196, 30, 58, 0.4), inset 0 0 15px rgba(255, 215, 0, 0.1);
  animation: btnTwinkle 2s ease-in-out infinite alternate;
}
.ot-hero-section .ot-btn-primary:hover { box-shadow: 0 0 25px rgba(196, 30, 58, 0.6), 0 0 50px rgba(255, 215, 0, 0.2) !important; transform: translateY(-3px) scale(1.02); }
@keyframes btnTwinkle { 0% { box-shadow: 0 0 15px rgba(196, 30, 58, 0.4), inset 0 0 15px rgba(255, 215, 0, 0.1); } 100% { box-shadow: 0 0 20px rgba(196, 30, 58, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.15), 0 0 40px rgba(255, 215, 0, 0.1); } }

.ot-hero-section .ot-btn-secondary {
  border-color: var(--xmas-gold) !important;
  color: var(--xmas-gold) !important;
}
.ot-hero-section .ot-btn-secondary:hover { background: var(--xmas-gold) !important; color: var(--ot-bg-dark) !important; }

/* Scroll reveal animations */
.ot-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.ot-reveal.ot-visible { opacity: 1; transform: translateY(0); }
.ot-reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.ot-reveal-left.ot-visible { opacity: 1; transform: translateX(0); }
.ot-reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.ot-reveal-right.ot-visible { opacity: 1; transform: translateX(0); }
.ot-reveal-scale { opacity: 0; transform: scale(0.8); transition: opacity 0.6s ease, transform 0.6s ease; }
.ot-reveal-scale.ot-visible { opacity: 1; transform: scale(1); }

/* Staggered city card animations */
.ot-city-card { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.ot-city-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 40px rgba(45, 138, 78, 0.3), 0 0 20px rgba(232, 197, 71, 0.15) !important;
}

/* Christmas garland on city cards */
.ot-city-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--xmas-red) 0px, var(--xmas-red) 8px, var(--xmas-gold) 8px, var(--xmas-gold) 16px, var(--xmas-green) 16px, var(--xmas-green) 24px);
  border-radius: 12px 12px 0 0;
}

/* Tree card Christmas enhancements */
.ot-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}
.ot-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 15px rgba(232, 197, 71, 0.1) !important;
}

/* Voting button Christmas style */
.ot-vote-btn.ot-vote-up { transition: all 0.3s ease; }
.ot-vote-btn.ot-vote-up:hover { background: var(--xmas-red) !important; box-shadow: 0 0 15px rgba(196, 30, 58, 0.4); transform: scale(1.15); }
.ot-vote-btn.ot-vote-down:hover { transform: scale(1.15); }

/* Vote count pop animation */
@keyframes votePop { 0% { transform: scale(1); } 50% { transform: scale(1.4); color: var(--xmas-gold); } 100% { transform: scale(1); } }
.ot-vote-count.ot-voted { animation: votePop 0.5s ease; }

/* Christmas lights string on section headings */
.ot-section h2, .ot-cities-section h2 {
  position: relative;
  display: inline-block;
}
.ot-section h2::after, .ot-cities-section h2::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--xmas-red) 0px, var(--xmas-red) 6px, transparent 6px, transparent 12px, var(--xmas-gold) 12px, var(--xmas-gold) 18px, transparent 18px, transparent 24px, var(--xmas-green) 24px, var(--xmas-green) 30px, transparent 30px, transparent 36px);
  animation: lightsMove 3s linear infinite;
}
@keyframes lightsMove { 0% { background-position: 0 0; } 100% { background-position: 36px 0; } }

/* Upload form Christmas border */
.ot-upload-section form, .ot-upload-form {
  border: 2px solid transparent !important;
  background-image: linear-gradient(var(--ot-card-bg), var(--ot-card-bg)), repeating-linear-gradient(90deg, var(--xmas-red), var(--xmas-gold) 33%, var(--xmas-green) 66%, var(--xmas-red) 100%);
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  animation: borderShift 4s linear infinite;
}
@keyframes borderShift { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(15deg); } }

/* Festive file drop area */
.ot-file-drop { border-color: var(--xmas-gold) !important; }
.ot-file-drop:hover, .ot-file-drop.ot-dragover { border-color: var(--xmas-red) !important; background: rgba(196, 30, 58, 0.05) !important; }

/* Submit button Christmas red */
.ot-upload-section .ot-btn-primary, .ot-upload-form .ot-btn-primary {
  background: linear-gradient(135deg, var(--xmas-red), #a01830) !important;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}
.ot-upload-section .ot-btn-primary:hover, .ot-upload-form .ot-btn-primary:hover {
  box-shadow: 0 6px 25px rgba(196, 30, 58, 0.5) !important;
  transform: translateY(-2px);
}

/* Footer Christmas touches */
.ot-footer { position: relative; overflow: hidden; }
.ot-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--xmas-red) 0px, var(--xmas-red) 10px, var(--xmas-gold) 10px, var(--xmas-gold) 20px, var(--xmas-green) 20px, var(--xmas-green) 30px);
}

/* Header Christmas lights */
.site-header { position: relative; }
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--xmas-red) 0px, var(--xmas-red) 8px, transparent 8px, transparent 14px, var(--xmas-gold) 14px, var(--xmas-gold) 22px, transparent 22px, transparent 28px, var(--xmas-green) 28px, var(--xmas-green) 36px, transparent 36px, transparent 42px);
  animation: lightsMove 4s linear infinite;
}

/* Toast notification Christmas style */
.ot-toast { border-left: 4px solid var(--xmas-gold) !important; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Page load fade in */
body { animation: pageIn 0.6s ease-out; }
@keyframes pageIn { 0% { opacity: 0; } 100% { opacity: 1; } }

/* Logo color fix - high specificity */
.site-header .site-branding h1.site-logo a,
.site-header .site-branding .site-logo a.site-logo__link,
.site-header .site-logo a,
.site-header .site-logo__link,
h1.site-logo a { color: #fff !important; text-decoration: none !important; font-family: 'Montserrat', sans-serif !important; font-weight: 900 !important; font-size: 28px !important; letter-spacing: -1px; transition: color 0.3s ease; }
.site-header .site-logo a:hover, .site-header .site-logo__link:hover { color: var(--xmas-gold) !important; }

/* Fix reveal - hero section should be visible immediately */
.ot-hero-section { opacity: 1 !important; transform: none !important; }

/* Header wrap dark background fix */
.site-header .site-header__wrap,
.site-header .site-header__wrap.container,
.site-header__wrap { background: var(--ot-bg-dark) !important; background-color: #0b1a0f !important; }
.site-header .space-between-content { background: transparent !important; }

/* Hide page title "OnlyTrees – Avaleht" */
.page-header { display: none !important; }
article > header:first-child { display: none !important; }
.entry-header { display: none !important; }

/* Mobile menu toggle */
.mobile-menu-toggle-button { background: var(--ot-primary) !important; border: none !important; }


/* ============================================
   CHRISTMAS DECORATIONS STYLES
   ============================================ */

/* Hero floating decorations */
.ot-xmas-deco { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.ot-hero-section { position: relative; }





}

/* City card icons */
.ot-city-icon { margin-right: 6px; font-size: 1.1em; }

/* Tree card Christmas badge */
.ot-xmas-badge { position: absolute; top: -8px; right: -8px; font-size: 28px; z-index: 5; animation: badgeBounce 2s ease-in-out infinite; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
@keyframes badgeBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  50% { transform: scale(1) rotate(0deg); }
  75% { transform: scale(1.1) rotate(5deg); }
}
.ot-card { position: relative; overflow: visible !important; }

/* Twinkling stars background */
.ot-stars { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ot-star { position: absolute; font-size: 14px; opacity: 0; animation: starTwinkle 3s ease-in-out infinite; }
@keyframes starTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.4; transform: scale(1); }
}

/* Christmas frame for upload */
.ot-xmas-frame { text-align: center; font-size: 18px; padding: 12px 20px; background: linear-gradient(135deg, rgba(196,30,58,0.1), rgba(232,197,71,0.1)); border: 1px dashed var(--xmas-gold); border-radius: 12px; margin-bottom: 20px; animation: framePulse 3s ease-in-out infinite; letter-spacing: 1px; }
@keyframes framePulse {
  0%, 100% { border-color: var(--xmas-gold); box-shadow: 0 0 10px rgba(232,197,71,0.1); }
  50% { border-color: var(--xmas-red); box-shadow: 0 0 20px rgba(196,30,58,0.15); }
}

/* Footer decorations */
.ot-footer-deco { text-align: center; font-size: 24px; letter-spacing: 12px; padding: 15px 0 5px; opacity: 0.5; animation: footerDecoFloat 4s ease-in-out infinite; }
@keyframes footerDecoFloat {
  0%, 100% { transform: translateY(0); letter-spacing: 12px; }
  50% { transform: translateY(-5px); letter-spacing: 16px; }
}

/* Vote buttons with Christmas icons */
.ot-vote-btn.ot-vote-up .fas { color: #c41e3a !important; }
.ot-vote-btn.ot-vote-down .fas { color: #666 !important; }
.ot-vote-btn { position: relative; }
.ot-vote-btn.ot-vote-up::before { content: '\2764\FE0F'; position: absolute; top: -8px; right: -5px; font-size: 10px; opacity: 0; transition: all 0.3s; }
.ot-vote-btn.ot-vote-up:hover::before { opacity: 1; top: -14px; }


/* === SINGLE TREE PROFILE PAGE === */
.single-joulukuusk .site-content__wrap { padding: 0 !important; max-width: 100% !important; }
.single-joulukuusk .entry-header { display: none !important; }
.single-joulukuusk .entry-meta { display: none !important; }
.single-joulukuusk .entry-footer { display: none !important; }
.single-joulukuusk .post-navigation { display: none !important; }
.single-joulukuusk .breadcrumbs { display: none !important; }

.ot-single-profile {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* Banner / Cover photo */
.ot-profile-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d2614 0%, #1e6b38 50%, #0d2614 100%);
}
.ot-profile-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) brightness(0.6);
  transform: scale(1.1);
}
.ot-profile-banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 120px;
}
.ot-profile-banner-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--ot-bg-dark, #0b1a0f) 0%, transparent 100%);
}

/* Avatar */
.ot-profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--xmas-gold, #e8c547);
  overflow: hidden;
  margin: -80px auto 16px;
  position: relative;
  z-index: 2;
  background: #1a3a24;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.ot-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ot-avatar-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 64px;
}

/* Profile info */
.ot-profile-info {
  text-align: center;
  padding: 0 20px;
}
.ot-profile-name {
  font-family: var(--ot-font, 'Montserrat', sans-serif) !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  color: #fff !important;
  margin: 0 0 8px !important;
  line-height: 1.2 !important;
}
.ot-profile-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ot-profile-handle a {
  color: var(--xmas-gold, #e8c547) !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.ot-profile-handle a:hover { opacity: 0.8; }
.ot-profile-author {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

/* Vote buttons */
.ot-profile-vote-section {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.ot-profile-vote-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--ot-font, 'Montserrat', sans-serif);
}
.ot-vote-love {
  background: linear-gradient(135deg, #c41e3a, #e8547a);
  color: #fff;
  border-color: rgba(196,30,58,0.5);
}
.ot-vote-love:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(196,30,58,0.4);
}
.ot-vote-nah {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.15);
}
.ot-vote-nah:hover {
  background: rgba(255,255,255,0.12);
  transform: scale(1.05);
}
.ot-vote-icon { font-size: 20px; }
.ot-vote-count {
  background: rgba(0,0,0,0.25);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 14px;
}
.ot-profile-vote-btn.ot-voting { opacity: 0.6; pointer-events: none; }
.ot-profile-vote-btn.ot-voted { animation: votePulse 0.4s ease; }
@keyframes votePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Stats grid */
.ot-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px 16px;
  margin-bottom: 32px;
}
.ot-stat-item {
  text-align: center;
}
.ot-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}
.ot-stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Main photo */
.ot-profile-photo-main {
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.ot-profile-photo-main img {
  width: 100%;
  display: block;
}

/* Related trees */
.ot-profile-related {
  padding: 0 20px;
}
.ot-profile-related h3 {
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  text-align: center;
}
.ot-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.ot-related-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.ot-related-card:hover {
  transform: translateY(-4px);
  border-color: var(--xmas-gold, #e8c547);
}
.ot-related-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #1a3a24;
}
.ot-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ot-related-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 48px;
}
.ot-related-info {
  padding: 12px;
  text-align: center;
}
.ot-related-name {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ot-related-votes {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.ot-see-all-link {
  display: block;
  text-align: center;
  color: var(--xmas-gold, #e8c547) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 15px;
  padding: 12px;
  transition: opacity 0.2s;
}
.ot-see-all-link:hover { opacity: 0.8; }

/* Mobile responsive */
@media (max-width: 600px) {
  .ot-profile-banner { height: 200px; }
  .ot-profile-avatar { width: 110px; height: 110px; margin-top: -60px; }
  .ot-profile-name { font-size: 24px !important; }
  .ot-profile-stats { grid-template-columns: repeat(2, 1fr); }
  .ot-profile-vote-section { flex-direction: column; align-items: center; }
  .ot-profile-vote-btn { width: 100%; max-width: 280px; justify-content: center; }
  .ot-related-grid { grid-template-columns: repeat(2, 1fr); }
}