/*
Theme Name: Crypto Secrets 2025
Theme URI: https://example.com/crypto-secrets
Author: Your Name
Author URI: https://example.com
Description: A custom WordPress theme based on your 3-page crypto site.
Version: 1.0
Text Domain: crypto-secrets
*/

/* ====== GLOBAL SPEED OPTIMIZED CSS ====== */
body {
  margin: 0;
  padding: 0;
  background: #121212;
  font-family: "Segoe UI", sans-serif;
  color: #fff;
}
h1 { text-align:center; color:#00e676; margin:20px 0; }

/* Container */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 15px;
  display: flex;
  gap: 15px;
}
.sidebar {
  flex: 1 1 20%;
  min-width: 200px;
}
.main, .main-content {
  flex: 1 1 55%;
  width: 70%;
  background: #1f1f1f;
  padding: 15px;
  border-radius: 10px;
  min-width: 300px;
}

/* Ads */
.ad-placeholder {
  background: transparent;
  color: #aaa;
  text-align: center;
  padding: 12px;
  margin: 15px 0;
  border-radius: 6px;
  font-style: italic;
  font-size: 14px;
}
/* Automatically center nested ad divs */
.ad-placeholder > div {
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  font-size: 14px;
  text-align: center;
  border: 1px solid #4caf50;
  border-radius: 6px;
  background-color: transparent;
}

/* Buttons */
.buttons {
  text-align: center;
  margin: 20px 0;
}
.buttons button {
  padding: 12px 25px;
  margin: 8px;
  font-size: 18px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-18 {
  background: linear-gradient(to right, #00c853, #64dd17);
  color: white;
}
.btn-under {
  background: linear-gradient(to right, #ff1744, #f50057);
  color: white;
}
.buttons button:hover {
  opacity: 0.85;
}
.watch-more-btn {
  display: inline-block;
  background: #f39c12;
  color: black;
  padding: 12px 24px;
  align-content: center;
  margin: 20px auto 30px;
  text-decoration: center;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
  object-position:center;
  justify-content: center;  /* Centers horizontally */
  align-items: center;      /* Centers vertically (optional) */
	display: flex;
}
.watch-more-btn:hover { background: #e67e22; }

/* Content */
.content-block {
  margin: 20px 0;
}
.content-block h3 {
  color: #40c4ff;
  margin-bottom: 8px;
}
.content-block p {
  color: #ccc;
  line-height: 1.6;
}
.article {
  background: #111;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #222;
  border-radius: 5px;
}
.article h3 { 
  color: #0ff; 
  margin-top: 0; 
}
.article p { 
  color: #ccc; 
  line-height: 1.6; 
}



/* Top Tags */
.top-keywords-section {
  background: #111;
  padding: 15px;
  margin: 30px auto;
  border-radius: 8px;
  max-width: 1200px;
  text-align: center;
  border: 1px solid #222;
}
.top-keywords-section h2 {
  color: #0ff;
  margin-bottom: 10px;
}
.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.keyword-tags a {
  background: #333;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  color: #fff;
}
.keyword-tags a:hover {
  background: #0ff;
  color: #000;
}

/* ==== FULL IMAGE CARD – NO CROPPING AT ALL ==== */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.image-card {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;                    /* important for equal height */
}

.image-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 230, 118, 0.4);
}

/* THIS IS THE KEY PART – FULL IMAGE, NO CROP */
.image-card img {
    width: 100%;
    height: auto !important;
    min-height: 400px;               /* forces card to be tall enough */
    object-fit: contain !important;       /* ← shows 100% of the image */
    object-position: top center;
    background: #000;
    display: block;
}

.image-card-title {
    padding: 18px;
    text-align: center;
    font-weight: bold;
    font-size: 19px;
    color: #00e676;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    margin-top: auto;
    letter-spacing: 0.8px;
}

/* Responsive */
@media (max-width: 992px) {
    .image-grid { grid-template-columns: repeat(2, 1fr); }
    .image-card img { min-height: 380px; }
}
@media (max-width: 600px) {
    .image-grid { grid-template-columns: 1fr; }
    .image-card img { min-height: 500px; }
}

/* VIDEO */
.video-wrapper {
  text-align: center;
  margin-bottom: 20px;
 align-content: center
}
.video-wrapper iframe {
  width: 60%;
  object-position: center;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

/* Mobile optimization */
@media (max-width: 992px) { 
  .container {
    flex-direction: column;
  }
  .sidebar, .main, .main-content {
    width: 100%;
  }
  .image-grid {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .sidebar, .main, .main-content {
    width: 100%;
  }
  .watch-more-btn {
    width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 600px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
}

/* PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999999;
}
.loader {
  width: 60px;
  height: 60px;
  border: 6px solid #333;
  border-top-color: #00e676;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.fadeOut {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

/* Extra menu glow effect */
.crypto-menu li a {
    position:relative;
}
.crypto-menu li a::after {
    content:''; position:absolute; bottom:0; left:50%; width:0; height:2px;
    background:#00e676; transition:0.4s; transform:translateX(-50%);
}
.crypto-menu li a:hover::after { width:100%; }

/* Faster image loading */
img { 
    loading: lazy; 
    height: auto; 
    display: block;
    opacity: 0;
    transition: opacity 0.4s;
}
img.loaded { opacity: 1; }

/* Make sure preloader has high z-index */
#preloader { 
    z-index: 999999999 !important; 
    background: #000; 
}

/* PERFECTLY CENTERED FULL-SIZE GIF – AGE VERIFY PAGE */
.age-verify-gif {
    display: flex;
 justify-content: center;     /* horizontal center */
 align-items: center;         /* vertical center */
 margin: 30px auto;
 padding: 15px;

 border-radius: 16px;
 max-width: 95%;
 overflow: hidden;
}

.age-verify-gif img {
 width: auto;
 height: auto;
 max-width: 100%;             /* responsive on mobile */
 max-height: 70vh;            /* doesn't go taller than screen */
 border-radius: 12px;
 border: 3px solid #00e676;
 box-shadow: 0 0 25px rgba(0, 230, 118, 0.6);
}



