/* TrumpX — Making NFT Great Again - Custom Styles */
/* USA Patriotic Color Scheme - Red, White, and Blue */

/* Custom Font Classes */
.font-bubblegum {
    font-family: 'Bubblegum Sans', cursive;
}

.font-fredoka {
    font-family: 'Fredoka', sans-serif;
}

.font-comic {
    font-family: 'Comic Neue', cursive;
}

.font-rammetto {
    font-family: 'Rammetto One', cursive;
}

/* Text Shadow Effects */
.text-shadow-lg {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-shadow-xl {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

/* Solid Drop Shadow Effects */
.drop-shadow-solid {
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.8);
}

.drop-shadow-solid-lg {
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.8);
}

.drop-shadow-solid-xl {
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.8);
}

/* Button Solid Shadows */
.btn-solid-shadow {
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.8);
    border-bottom: 6px solid rgba(0, 0, 0, 0.8);
}

.btn-solid-shadow:hover {
    transform: translateY(4px);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.8);
}

/* Card Solid Shadows */
.card-solid-shadow {
    box-shadow: 0 12px 0 rgba(0, 0, 0, 0.8);
    border-bottom: 8px solid rgba(0, 0, 0, 0.8);
}

.card-solid-shadow:hover {
    transform: translateY(6px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.8);
}

/* Marquee Animations */
@keyframes marqueeLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes marqueeRight {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

.animate-marquee-left {
    animation: marqueeLeft linear infinite;
}

.animate-marquee-right {
    animation: marqueeRight linear infinite;
}

/* Custom utility classes */
.will-change-transform {
    will-change: transform;
}

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

/* Custom scrollbar styles for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Hide scrollbar for merch carousel */
.merch-scroller {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.merch-scroller::-webkit-scrollbar {
    display: none;
}

/* Grid layout enhancements */
.grid-item {
    transition: all 0.3s ease-in-out;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(251, 191, 36, 0.1);
}

/* Button hover effects */
.btn-primary {
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
    background-color: #27272a;
    transform: translateY(-1px);
}

/* Video overlay gradient */
.video-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(1px);
}

/* NFT card styles */
.nft-card {
    transition: all 0.3s ease-in-out;
}

.nft-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Meme card styles */
.meme-card {
    transition: all 0.3s ease-in-out;
    aspect-ratio: 1/2; /* 2:4 ratio (width:height) */
    display: flex;
    flex-direction: column;
}

.meme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.meme-card img {
    transition: opacity 0.3s ease-in-out;
    width: 100%;
    height: calc(100% - 50px); /* Take up most of the card height */
    object-fit: cover; /* Crop images to fit */
    object-position: center; /* Center the crop */
}

.meme-card figcaption {
    height: 50px; /* Fixed height for caption */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.meme-card:hover img {
    opacity: 0.9;
}

/* Merch card styles */
.merch-card {
    transition: all 0.3s ease-in-out;
}

.merch-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4);
}

/* Roadmap card styles */
.roadmap-card {
    transition: all 0.3s ease-in-out;
}

.roadmap-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(251, 191, 36, 0.1);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive text sizing */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
        line-height: 1.1;
    }
}

@media (min-width: 769px) {
    .hero-title {
        font-size: 4.5rem;
        line-height: 1.1;
    }
}

/* Focus styles for accessibility - USA Flag Colors */
button:focus,
a:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Selection styles - USA Flag Colors */
::selection {
    background-color: #dc2626;
    color: #ffffff;
}

::-moz-selection {
    background-color: #dc2626;
    color: #ffffff;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-zinc-400 {
        color: #a1a1aa !important;
    }
    
    .text-zinc-500 {
        color: #71717a !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-marquee-left,
    .animate-marquee-right {
        animation: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark mode */
}

/* Custom gradients - Yellow to Red */
.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Shimmer effect for loading states */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== MEME MAKER STYLES ===== */
/* Meme Maker Specific Styles */
.meme-maker-container {
    min-height: 100vh;
    background-color: #1d4ed8; /* Blue background */
    color: #ffffff;
    font-family: 'Fredoka', sans-serif;
}

.meme-maker-container .max-w-5xl {
    max-width: 1024px;
    margin: 0 auto;
}

.meme-maker-container h1 {
    font-family: 'Rammetto One', cursive;
}

.control-section {
    margin-bottom: 1.5rem;
}

.control-section h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #dc2626;
}

.sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.sticker-item {
    aspect-ratio: 1;
    background-color: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    overflow: hidden;
}

.sticker-item:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.sticker-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 2px dashed #d1d5db;
    flex: 1;
    min-height: 300px;
    max-height: 500px;
}

@media (max-width: 640px) {
    .canvas-container {
        min-height: 250px;
        max-height: 300px;
        padding: 0.5rem;
    }
}

#memeCanvas {
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.meme-maker-container .grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    min-height: calc(100vh - 150px);
}

@media (max-width: 1024px) {
    .meme-maker-container .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: auto;
    }
}

/* Ensure proper desktop layout */
@media (min-width: 1025px) {
    .meme-maker-container .grid {
        grid-template-columns: 1fr 2fr;
        gap: 1.5rem;
    }
}

.meme-maker-container .grid > div:first-child {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.meme-maker-container .control-section {
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

.meme-maker-container .control-section:last-child {
    margin-bottom: 0;
}

.meme-maker-container .control-section h3 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.meme-maker-container .input-group {
    margin-bottom: 0.25rem;
}

.meme-maker-container .input-group label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.meme-maker-container .input-group input,
.meme-maker-container .input-group select {
    padding: 0.5rem;
    font-size: 0.875rem;
}

.meme-maker-container .sticker-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
}

.meme-maker-container .sticker-item {
    aspect-ratio: 1;
    padding: 0.125rem;
    min-height: 40px;
}

@media (max-width: 1024px) {
    .meme-maker-container .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #374151;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #dc2626;
}

.tips-section {
    background-color: #dbeafe;
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.tips-section p {
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 0.125rem;
    font-size: 0.75rem;
}

.tips-section ul {
    font-size: 0.625rem;
    color: #1d4ed8;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-section li {
    margin-bottom: 0.0625rem;
}

.back-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
    display: inline-block;
}

.back-link:hover {
    color: #dc2626;
}

/* Mobile back link styling */
@media (max-width: 1024px) {
    .back-link {
        text-align: center;
        padding: 0.5rem 1rem;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.2s;
    }
    
    .back-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: #dc2626;
    }
}

@media (max-width: 1024px) {
    .meme-maker-container {
        padding: 1rem;
    }
    
    .sticker-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .sticker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .meme-maker-container {
        padding: 0.5rem;
    }
    
    .meme-maker-container .max-w-5xl {
        padding: 0;
    }
    
    .meme-maker-container h1 {
        font-size: 1.5rem;
    }
    
    .meme-maker-container .control-section h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .meme-maker-container .input-group {
        margin-bottom: 0.75rem;
    }
    
    .meme-maker-container .input-group input,
    .meme-maker-container .input-group select {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .meme-maker-container .sticker-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
    }
    
    .meme-maker-container .sticker-item {
        min-height: 35px;
        padding: 0.125rem;
    }
    
    .tips-section {
        font-size: 0.75rem;
    }
    
    .tips-section p {
        font-size: 0.75rem;
    }
    
    .tips-section ul {
        font-size: 0.625rem;
    }
}

@media (max-width: 480px) {
    .meme-maker-container h1 {
        font-size: 1.25rem;
    }
    
    .meme-maker-container .sticker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .canvas-container {
        min-height: 200px;
        max-height: 250px;
    }
}
