/* ========================================
   CRYPTOTRENDS NEWS - MOBILE FIRST CSS
   ======================================== */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    font-size: clamp(16px, 2.5vw, 18px);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Typography - Mobile First */
h1 {
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

h2 {
    font-size: clamp(20px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px 0;
}

h3 {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

p {
    margin: 0 0 16px 0;
    line-height: 1.6;
}

/* Buttons - Touch Friendly */
.btn {
    display: inline-block;
    padding: 12px 24px;
    min-height: 44px;
    min-width: 44px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(45deg, #ff4444, #ff6b35);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ff4444;
    border: 2px solid #ff4444;
}

.btn-secondary:hover {
    background: #ff4444;
    color: white;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid #333;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo a {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: white;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    z-index: 999;
}

.nav-menu.active {
    left: 0;
}

.nav-link {
    color: white;
    font-size: 24px;
    font-weight: 500;
    margin: 16px 0;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ff4444;
}

.nav-cta {
    margin-top: 32px;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 80px 16px 40px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    text-align: center;
}

.hero-container {
    width: 100%;
    max-width: 800px;
}

.hero-title {
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(45deg, #ff4444, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: #f5f5f5;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 40px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: #ff4444;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-form {
    width: 100%;
    max-width: 400px;
    margin: 40px auto 24px auto;
}

.hero-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #333;
    border-radius: 12px;
    background: #1a1a1a;
    color: white;
    margin-bottom: 16px;
    transition: border-color 0.3s;
}

.hero-input:focus {
    outline: none;
    border-color: #ff4444;
}

.hero-input::placeholder {
    color: #666;
}

.hero-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(45deg, #ff4444, #ff6b35);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 44px;
    position: relative;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.3);
}

.hero-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.hero-disclaimer {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

/* Featured Posts */
.featured-posts {
    padding: 60px 0;
    background: #111;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.post-card {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.post-category {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.post-category.hot {
    background: linear-gradient(45deg, #ff4444, #ff6b35);
    color: white;
}

.post-category.presales {
    background: linear-gradient(45deg, #00d4aa, #2ecc71);
    color: white;
}

.post-category.guide {
    background: linear-gradient(45deg, #3b82f6, #1e3a8a);
    color: white;
}

.post-category.defi {
    background: linear-gradient(45deg, #8b5cf6, #6d28d9);
    color: white;
}

.post-title {
    color: white;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-excerpt {
    color: #ccc;
    margin-bottom: 16px;
    line-height: 1.5;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: #999;
}

.post-link {
    color: #ff4444;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.post-link:hover {
    color: #ff6b35;
}

.featured-cta {
    text-align: center;
}

/* Why Choose Us */
.why-choose-us {
    padding: 60px 0;
    background: #0a0a0a;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-card {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    color: white;
    margin-bottom: 12px;
}

.feature-description {
    color: #ccc;
    margin: 0;
    line-height: 1.5;
}

/* Final CTA */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    color: white;
    margin-bottom: 24px;
}

.cta-subtitle {
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-form {
    max-width: 400px;
    margin: 0 auto 24px auto;
}

.cta-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #333;
    border-radius: 12px;
    background: #1a1a1a;
    color: white;
    margin-bottom: 16px;
    transition: border-color 0.3s;
}

.cta-input:focus {
    outline: none;
    border-color: #ff4444;
}

.cta-input::placeholder {
    color: #666;
}

.cta-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(45deg, #ff4444, #ff6b35);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 44px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.3);
}

.cta-disclaimer {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Footer */
.footer {
    background: #111;
    padding: 60px 0 20px 0;
    border-top: 1px solid #333;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 12px;
}

.footer-brand p {
    color: #ccc;
    margin: 0;
}

.footer-links h4,
.footer-legal h4,
.footer-social h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links a,
.footer-legal a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: #ff4444;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover {
    color: #ff4444;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.footer-copyright {
    color: #999;
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-disclaimer {
    background: #1a1a1a;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #ff4444;
}

.footer-disclaimer p {
    color: #ccc;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #00d4aa, #2ecc71);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.success-message.show {
    transform: translateX(0);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Small tablets - 576px+ */
@media (min-width: 576px) {
    .container {
        padding: 0 24px;
    }
    
    .hero {
        padding: 100px 24px 60px 24px;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets - 768px+ */
@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
    
    .mobile-nav {
        display: none;
    }
    
    .desktop-nav {
        display: block;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        border-bottom: 1px solid #333;
    }
    
    .desktop-nav .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .desktop-nav .nav-logo a {
        font-size: 24px;
        font-weight: 700;
        color: white;
        text-decoration: none;
    }
    
    .desktop-nav .nav-links {
        display: flex;
        gap: 32px;
    }
    
    .desktop-nav .nav-link {
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }
    
    .desktop-nav .nav-link:hover {
        color: #ff4444;
    }
    
    .hero {
        padding: 120px 32px 80px 32px;
    }
    
    .hero-form {
        display: flex;
        gap: 16px;
        align-items: flex-end;
    }
    
    .hero-input {
        margin-bottom: 0;
        flex: 1;
    }
    
    .hero-btn {
        width: auto;
        white-space: nowrap;
    }
    
    .cta-form {
        display: flex;
        gap: 16px;
        align-items: flex-end;
    }
    
    .cta-input {
        margin-bottom: 0;
        flex: 1;
    }
    
    .cta-btn {
        width: auto;
        white-space: nowrap;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .social-links {
        flex-direction: row;
        gap: 16px;
    }
}

/* Desktop - 1024px+ */
@media (min-width: 1024px) {
    .container {
        padding: 0 48px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop - 1200px+ */
@media (min-width: 1200px) {
    .hero-stats {
        gap: 60px;
    }
    
    .posts-grid {
        gap: 40px;
    }
    
    .features-grid {
        gap: 40px;
    }
}
