/* RoyaleMeta.fun - Main Stylesheet */
/* Created for the Ultimate Clash Royale Resource Hub */

:root {
    /* Primary Colors */
    --primary: #5271ff;
    --primary-dark: #3d57d6;
    --secondary: #ff9c27;
    --secondary-dark: #e68a1e;
    
    /* Background Colors */
    --bg-dark: #0a1128;
    --bg-medium: #121f3d;
    --bg-light: #1e3163;
    --bg-card: #172547;
    
    /* Text Colors */
    --text-light: #ffffff;
    --text-muted: #a0b1e1;
    --text-dark: #0a1128;
    
    /* Accent Colors */
    --accent-red: #ff4757;
    --accent-green: #2ed573;
    --accent-blue: #70a1ff;
    --accent-purple: #9c88ff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #7d97ff 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #ffbd59 100%);
    --gradient-dark: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 10px 20px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-title span {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    outline: none;
    font-size: 1.6rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(82, 113, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(82, 113, 255, 0.6);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 156, 39, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 156, 39, 0.6);
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    color: var(--secondary);
}

.btn-link i {
    transition: var(--transition-fast);
}

.btn-link:hover i {
    transform: translateX(4px);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 0;
}

header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: auto;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.logo-container h1 {
    font-size: 2.4rem;
    margin-bottom: 0;
}

.logo-container h1 span {
    color: var(--primary);
}

nav ul {
    display: flex;
    gap: 1.5rem;
    margin-left: 2rem;
}

nav a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
    display: block;
}

nav a::after {
    content: none;
}

nav a:hover::after,
nav a.active::after {
    width: 0;
}

.mobile-menu-btn {
    display: none;
    font-size: 2.4rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.mobile-menu-btn.active {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Media Queries per Header Responsive */
@media (max-width: 992px) {
    nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    header .container {
        position: relative;
    }
    
    nav ul {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background-color: var(--bg-medium);
        padding: 2rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
        width: 200px;
        transform: translateY(10px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 100;
    }
    
    nav ul.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    nav ul {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        flex-direction: row !important;
        background-color: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        width: auto !important;
    }
}

/* Hero Section */
.hero {
    padding: var(--spacing-md) 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.royaleapi.com/static/img/cards-150/goblin-drill.png?t=e7c50ff0c');
    background-repeat: no-repeat;
    background-position: 120% 50%;
    background-size: 50%;
    opacity: 0.05;
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.hero-content h2 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-content h2 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--secondary);
    opacity: 0.3;
    z-index: -1;
}

.hero-content p {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(82, 113, 255, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Featured Content Section */
.featured-content {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-medium);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.featured-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.2;
    z-index: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.featured-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: var(--spacing-sm);
}

.card-content h3 {
    margin-bottom: var(--spacing-xs);
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

/* Deck Builder Section */
.deck-builder {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.deck-builder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.royaleapi.com/static/img/cards-150/electro-giant.png?t=e7c50ff0c');
    background-repeat: no-repeat;
    background-position: -10% 50%;
    background-size: 30%;
    opacity: 0.05;
    z-index: 0;
}

.deck-builder .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.deck-builder-content {
    flex: 1;
}

.deck-preview {
    flex: 1;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-card);
}

/* GLOBAL STYLES */
:root {
    --primary-color: #1e88e5;
    --secondary-color: #ffc107;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --success-color: #4caf50;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  a {
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
  }
  
  a:hover {
    color: var(--primary-color);
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* BUTTONS */
  .btn {
    display: inline-block;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
  }
  
  .btn-primary:hover {
    background-color: #1976d2;
    color: var(--text-light);
    transform: translateY(-3px);
  }
  
  .btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
  }
  
  .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
  }
  
  /* HEADER */
  header {
    background-color: rgba(15, 23, 42, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
  }
  
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-container {
    display: flex;
    align-items: center;
  }
  
  .logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
  }
  
  header h1 {
    font-size: 24px;
    font-weight: 700;
  }
  
  header h1 span {
    color: var(--primary-color);
  }
  
  nav ul {
    display: flex;
  }
  
  nav ul li {
    margin-left: 20px;
  }
  
  nav ul li a {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    white-space: nowrap;
    display: block;
  }
  
  nav ul li a.active,
  nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
  }
  
  .mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
  }
  
  /* HERO SECTION */
  .hero {
    padding: 80px 0;
    background: linear-gradient(to bottom, #0f172a, #1e293b);
  }
  
  .hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .hero-content {
    flex: 1;
    max-width: 600px;
  }
  
  .hero h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
  }
  
  .hero h2 span {
    color: var(--primary-color);
  }
  
  .hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-gray);
  }
  
  .hero-buttons {
    display: flex;
    gap: 15px;
  }
  
  .hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  .hero-image img {
    max-width: 300px;
    filter: drop-shadow(0 0 15px rgba(30, 136, 229, 0.6));
    animation: float 3s ease-in-out infinite;
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-20px);
    }
  }
  
  /* POPULAR DECKS SECTION */
  .popular-decks {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    font-weight: 700;
  }
  
  .section-title span {
    color: var(--primary-color);
  }
  
  .deck-filters {
    background-color: rgba(30, 41, 59, 0.8);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
  }
  
  .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .filter-label {
    font-size: 14px;
    color: var(--text-gray);
    white-space: nowrap;
  }
  
  .filter-value {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
  }
  
  /* DECK CARDS */
  .deck-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .deck-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  .deck-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .deck-rank {
    font-size: 24px;
    font-weight: 700;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    margin-right: 15px;
  }
  
  .deck-title {
    font-size: 18px;
    font-weight: 600;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .deck-stats {
    display: flex;
    gap: 20px;
  }
  
  .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .stat-label {
    font-size: 13px;
    color: var(--text-gray);
    white-space: nowrap;
  }
  
  .stat-value {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
  }
  
  .stat-value.highlight {
    color: var(--success-color);
  }
  
  .deck-content {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .deck-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex: 1;
    min-width: 280px;
  }
  
  .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: var(--border-radius);
    padding: 10px;
    transition: var(--transition);
  }
  
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  .card img {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
  }
  
  .card span {
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    display: block;
  }
  
  .deck-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 280px;
  }
  
  .usage-stats {
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: var(--border-radius);
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .usage-stat {
    display: flex;
    flex-direction: column;
  }
  
  .pro-players {
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: var(--border-radius);
    padding: 15px;
  }
  
  .pro-player {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .pro-tip {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: rgba(30, 136, 229, 0.1);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    font-size: 13px;
    font-style: italic;
  }

@media (max-width: 768px) {
    .deck-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .deck-details {
        flex-direction: column;
    }
    
    .pro-players {
        text-align: left;
        margin-top: 15px;
    }
}

/* CTA SECTION */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    text-align: center;
}
  
.cta-content {
    max-width: 800px;
    margin: 0 auto;
}
  
.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}
  
.cta-content h2 span {
    color: var(--primary-color);
}
  
.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-gray);
}




@media (max-width: 576px) {
    .deck-header {
        flex-wrap: wrap;
    }
    
    .deck-stats {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
}

/* Daily Deck Section */
.daily-deck {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-medium);
}

.daily-deck-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.daily-deck-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-image: url('https://cdn.royaleapi.com/static/img/cards-150/electro-giant.png?t=e7c50ff0c');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.1;
    z-index: 0;
}

.daily-deck-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.deck-description {
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.deck-stats-detailed {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.daily-deck-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* Latest News Section */
.latest-news {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.news-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-tag {
    position: absolute;
    top: var(--spacing-xs);
    left: var(--spacing-xs);
    background-color: var(--primary);
    color: var(--text-light);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 2;
}

.news-content {
    padding: var(--spacing-sm);
}

.news-date {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}

.news-excerpt {
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-all-container {
    text-align: center;
}

/* Newsletter Section */
.newsletter {
    padding: var(--spacing-lg) 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-image: url('https://cdn.royaleapi.com/static/img/cards-150/mega-knight.png?t=e7c50ff0c');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.1;
    z-index: 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-content h2 {
    color: var(--text-light);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-xs);
}

.newsletter-form input {
    flex: 1;
    padding: 1.2rem 2rem;
    border-radius: var(--radius-full);
    border: none;
    outline: none;
    font-size: 1.6rem;
    font-family: inherit;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    padding-top: var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: var(--spacing-xs);
    border: 2px solid var(--primary);
}

.footer-about h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.footer-about h3 span {
    color: var(--primary);
}

.footer-about p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.social-links {
    display: flex;
    gap: var(--spacing-xs);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.8rem;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.footer-links ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xs);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    html {
        font-size: 60%;
    }
    
    .hero-content h2 {
        font-size: 4.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .footer-about {
        grid-column: span 3;
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 58%;
    }
    
    .hero .container,
    .deck-builder .container,
    .daily-deck-container {
        flex-direction: column;
    }
    
    .hero-content,
    .deck-builder-content,
    .daily-deck-info {
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        justify-content: center;
    }
    
    .deck-stats-detailed {
        justify-content: center;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-about {
        grid-column: span 2;
    }
}

/* Mobile Dropdown Menu */
.mobile-dropdown-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: var(--bg-dark);
    width: 100%;
    max-width: 300px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

@media (min-width: 769px) {
    .mobile-dropdown-menu {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
}

.mobile-dropdown-menu.active {
    display: block;
}

.mobile-dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-dropdown-menu ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-menu ul li:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.mobile-dropdown-menu ul li a:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    .hero-content h2 {
        font-size: 3.6rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-about {
        grid-column: span 1;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive Deck Builder Styles */
.deck-builder-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 17, 40, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.deck-builder-modal.active {
    opacity: 1;
    visibility: visible;
}

.deck-builder-content {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--accent-red);
    transform: rotate(90deg);
}

.card-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: var(--spacing-md);
}

.card-selection-item {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.card-selection-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-selection-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-selection-item.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* JavaScript-related styles */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Deck Builder Styles */
.deck-builder-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.card-selection {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-card);
}

/* Posizionamento della barra di ricerca in alto */
.search-and-filters {
    position: sticky;
    top: 0;
    background-color: var(--bg-card);
    padding: 10px 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    border: none;
    background-color: var(--bg-light);
    color: var(--text-light);
    font-size: 16px;
}

.search-bar button {
    padding: 12px 20px;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    border: none;
    background-color: var(--primary);
    color: var(--text-light);
    cursor: pointer;
}

.card-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
}

.filter-btn {
    background-color: var(--bg-light);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: var(--text-light);
}

/* Miglioramento layout carte in orizzontale */
.cards-grid-container {
    max-height: 380px;
    overflow-y: auto;
    padding: 5px;
    border-radius: var(--radius-md);
}

#cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.card-item {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 140px;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-item.selected {
    border: 2px solid var(--primary);
    background-color: rgba(82, 113, 255, 0.1);
}

.card-item img {
    width: 80%;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.card-name {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.card-elixir {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #9b59b6;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Contenitore del mazzo attuale */
.deck-slots-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding: 20px;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.deck-left {
    flex: 1;
}

.deck-right {
    width: 300px;
}

.deck-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.deck-slot {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.deck-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.deck-slot .remove-card {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--accent-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-fast);
}

.deck-slot:hover .remove-card {
    opacity: 1;
}

.deck-stats {
    margin-bottom: 20px;
}

.deck-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label i {
    color: var(--primary);
    font-size: 18px;
}

.stat-value {
    font-weight: 600;
    font-size: 16px;
}

.elixir-bar {
    height: 10px;
    background-color: var(--bg-light);
    border-radius: var(--radius-full);
    margin-top: 8px;
    overflow: hidden;
}

.elixir-fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent-green), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
}

.deck-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
    flex: 1;
}

.save-btn {
    background-color: var(--primary);
    color: var(--text-light);
}

.save-btn:hover {
    background-color: var(--primary-dark);
}

.clear-btn {
    background-color: var(--bg-light);
    color: var(--text-light);
}

.clear-btn:hover {
    background-color: var(--accent-red);
}

.random-btn {
    background-color: var(--secondary);
    color: var(--text-dark);
}

.random-btn:hover {
    background-color: var(--secondary-dark);
}

.deck-tips {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.deck-tips h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-xs);
    font-size: 1.8rem;
}

.deck-tips h3 i {
    color: var(--secondary);
}

.deck-tips-content {
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1.5;
}

.deck-tips-content ul {
    padding-left: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.deck-tips-content li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.deck-tips-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.deck-share {
    margin-top: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
}

.deck-share h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-xs);
    font-size: 1.8rem;
}

.deck-share h3 i {
    color: var(--primary);
}

.share-options {
    display: flex;
    gap: 10px;
    margin-top: var(--spacing-xs);
}

.share-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-medium);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

.share-option:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.share-option i {
    font-size: 1.6rem;
}

/* Responsive styles for deck builder */
@media (max-width: 768px) {
    .deck-slots-container {
        flex-direction: column;
    }
    
    .deck-right {
        width: 100%;
    }
    
    .deck-slots {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .deck-slot {
        width: 100%;
    }
    
    .share-options {
        flex-wrap: wrap;
    }
}

/* Mobile Dropdown Menu */
.mobile-dropdown-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: var(--bg-dark);
    width: 100%;
    max-width: 300px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

@media (min-width: 769px) {
    .mobile-dropdown-menu {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
}

.mobile-dropdown-menu.active {
    display: block;
}

.mobile-dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-dropdown-menu ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-menu ul li:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.mobile-dropdown-menu ul li a:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 576px) {
    .deck-slots {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .card-filters {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 1.2rem;
    }
}