/* 🎯 HASHTAGSNIPER RESPONSIVE STYLESHEET */
/* Mobile-First Responsive Design */

/* ===== BASE RESPONSIVE SETTINGS ===== */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

/* ===== MOBILE FIRST STYLES (Default: 320px - 767px) ===== */

/* General Mobile Adjustments */
body {
    font-size: 14px;
    line-height: 1.4;
}

.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Mobile Header & Navigation */
.sales-header {
    padding: 15px 0;
}

.header-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
}

.logo {
    font-size: 1.5rem;
}

.nav-menu {
    flex-direction: column;
    gap: 10px;
}

.nav-menu a {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Mobile Hero Section */
.hero {
    padding: 40px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.hero-buttons {
    flex-direction: column;
    gap: 10px;
}

/* Mobile Pricing Grid */
.pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
}

.pricing-card {
    margin: 0 auto;
    max-width: 350px;
}

.price {
    font-size: 2rem;
}

.price-period {
    font-size: 0.9rem;
}

/* Mobile Features Grid */
.features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-card {
    padding: 20px;
}

/* Mobile Forms */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    padding: 12px 15px;
    font-size: 14px;
}

.btn {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
}

/* Mobile Dashboard */
.dashboard-stats {
    grid-template-columns: 1fr;
    gap: 15px;
}

.stat-card {
    padding: 15px;
}

.dashboard-content {
    flex-direction: column;
}

.sidebar {
    width: 100%;
    margin-bottom: 20px;
}

.main-content {
    width: 100%;
}

/* Mobile Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    font-size: 0.8rem;
}

/* ===== TABLET STYLES (768px - 1023px) ===== */
@media screen and (min-width: 768px) {
    html {
        font-size: 16px;
    }
    
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    /* Tablet Header */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .nav-menu {
        flex-direction: row;
        gap: 20px;
    }
    
    /* Tablet Hero */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Tablet Pricing */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Tablet Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Tablet Forms */
    .btn {
        width: auto;
    }
    
    /* Tablet Dashboard */
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-content {
        flex-direction: row;
    }
    
    .sidebar {
        width: 250px;
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .main-content {
        width: calc(100% - 270px);
    }
}

/* ===== DESKTOP STYLES (1024px - 1439px) ===== */
@media screen and (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    /* Desktop Hero */
    .hero h1 {
        font-size: 3rem;
    }
    
    /* Desktop Pricing */
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Desktop Features */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Desktop Dashboard */
    .dashboard-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== LARGE DESKTOP STYLES (1440px+) ===== */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1200px;
    }
    
    .hero {
        padding: 80px 0;
    }
}

/* ===== SPECIFIC COMPONENT RESPONSIVE FIXES ===== */

/* Pricing Card Mobile Optimizations */
@media screen and (max-width: 767px) {
    .pricing-card.featured {
        transform: none;
        margin: 20px auto;
    }
    
    .pricing-card.featured::before {
        font-size: 0.8rem;
        padding: 5px 15px;
    }
}

/* Analysis Form Responsive */
.analysis-form {
    padding: 20px;
}

@media screen and (max-width: 767px) {
    .analysis-form .form-row {
        flex-direction: column;
    }
    
    .analysis-form .form-group {
        width: 100%;
    }
}

/* Results Table Responsive */
@media screen and (max-width: 767px) {
    .results-table th,
    .results-table td {
        padding: 8px 5px;
        font-size: 0.8rem;
    }
    
    .results-table th:nth-child(3),
    .results-table td:nth-child(3),
    .results-table th:nth-child(4),
    .results-table td:nth-child(4) {
        display: none;
    }
}

/* Navigation Toggle for Mobile */
.mobile-menu-toggle {
    display: none;
}

@media screen and (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #333;
        cursor: pointer;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
}

/* Footer Responsive */
.footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
}

@media screen and (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ===== UTILITY CLASSES FOR RESPONSIVE DESIGN ===== */
.hidden-mobile {
    display: none;
}

.visible-mobile {
    display: block;
}

@media screen and (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }
    
    .visible-mobile {
        display: none;
    }
}

/* Text Size Adjustments */
.text-mobile-sm {
    font-size: 0.8rem;
}

.text-mobile-base {
    font-size: 0.9rem;
}

@media screen and (min-width: 768px) {
    .text-mobile-sm,
    .text-mobile-base {
        font-size: 1rem;
    }
}

/* Spacing Adjustments for Mobile */
.mobile-padding {
    padding: 20px 0;
}

.mobile-margin {
    margin: 15px 0;
}

@media screen and (min-width: 768px) {
    .mobile-padding {
        padding: 40px 0;
    }
    
    .mobile-margin {
        margin: 30px 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none !important;
    }
    
    .sales-header,
    .sidebar,
    .footer {
        display: none !important;
    }
    
    .main-content {
        width: 100% !important;
        margin: 0 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000 !important;
        background: #fff !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* ===== HIGH-DPI/RETINA DISPLAY SUPPORT ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        transform: scale(0.75);
        transform-origin: 0 0;
    }
}

/* ===== LANDSCAPE MOBILE OPTIMIZATIONS ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 20px 0;
    }
    
    .sales-header {
        padding: 10px 0;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    /* You can add dark mode styles here if needed */
}

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-menu a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}