/* 
 * TopRankedDomains.com - Main Stylesheet
 * Modular CSS organized by component
 * Updated with Compact Stats/Portfolio and Dark Menu
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    min-height: 100vh;
    color: #212529;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   NAVIGATION/MENU - Dark Theme Matching Footer
   ========================================================================== */

.navigation,
.navbar,
.menu,
.top-nav,
.main-nav,
nav,
.nav-menu,
.site-navigation {
    background: #343a40 !important;  /* Dark gray matching footer */
    background-color: #343a40 !important;
    color: white !important;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1000;
    border: none !important;
}

/* Ensure all navigation containers use dark background */
.navigation .container,
.navbar .container,
.menu .container {
    background: transparent !important;
}

.navigation a,
.navbar a,
.menu a,
nav a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    padding: 8px 15px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navigation a:hover,
.navbar a:hover,
.menu a:hover,
nav a:hover {
    color: #ff6b35 !important;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 6px;
}

.navigation .active,
.navbar .active,
.menu .active {
    color: #ff6b35 !important;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 6px;
}

/* ==========================================================================
   Header Component - COMPACT VERSION
   ========================================================================== */

.header {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(255, 107, 53, 0.12);
    border: 1px solid #ff6b35;
}

.logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    color: #212529;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 15px;
    font-weight: 500;
}

/* ==========================================================================
   COMPACT STATS COMPONENT - Horizontal Layout
   ========================================================================== */

.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
}

.stat-item {
    background: white;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    flex: 1;
    min-width: 0;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #ff8c42);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.12);
    border-color: #ff6b35;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ==========================================================================
   COMPACT PORTFOLIO VALUE SECTION
   ========================================================================== */

.portfolio-value-section {
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.portfolio-value-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.03), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.portfolio-value-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap; /* Prevent wrapping on desktop */
}

.portfolio-value-title::before,
.portfolio-value-title::after {
    content: '';
    height: 2px;
    width: 40px;
    background: linear-gradient(90deg, transparent, #ff6b35, transparent);
}

.portfolio-value-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: 0 2px 8px rgba(255, 107, 53, 0.08);
}

.portfolio-value-note {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    max-width: 500px;
    margin: 0 auto;
}

/* Enhanced hover effect for portfolio value */
.portfolio-value-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.1);
    border-color: #ff6b35;
}

/* ==========================================================================
   Featured Section - Enhanced for Perfect Domain Display
   ========================================================================== */

.featured-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ff6b35;
    overflow-x: auto; /* Allow horizontal scroll if needed */
}

.featured-title {
    color: #212529;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 15px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    min-width: min-content; /* Allow grid to expand */
}

/* Responsive grid adjustments */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

.featured-card {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.featured-domain {
    font-weight: bold;
    margin-bottom: 10px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    /* Dynamic font sizing based on viewport and container */
    font-size: clamp(0.8rem, 2.5vw, 1.2rem);
    /* Ensure domain names display properly */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: manual;
}

/* Special handling for very long domains */
.featured-card.long-domain .featured-domain {
    font-size: 0.9rem;
}

.featured-card.extra-long-domain .featured-domain {
    font-size: 0.8rem;
}

/* Alternative: Scale text to fit */
@supports (width: fit-content) {
    .featured-domain {
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

.featured-tier {
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: 5px;
}

/* ==========================================================================
   Filters Section
   ========================================================================== */

.filters-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ff6b35;
}

.filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.search-input,
.filter-select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #212529;
}

.search-input {
    flex: 1;
    min-width: 250px;
}

.filter-select {
    min-width: 150px;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}

.filter-label {
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
    text-align: left;
    min-width: 100px;
    display: inline-block;
}

/* Search button styling */
.filter-btn {
    padding: 12px 20px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.filter-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Clear filters button */
.clear-btn {
    padding: 12px 20px;
    background: #dc3545;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.clear-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.active-filters {
    margin-bottom: 15px;
}

.active-filter {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 2px;
    font-weight: 500;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: 600;
}

.btn-primary {
    background: #ff6b35;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* ==========================================================================
   DOMAIN GRID - SIMPLE AND CLEAN
   ========================================================================== */

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Clean Domain Card */
.domain-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: default;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 2px solid transparent;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

/* Domain Card Content */
.domain-card-content {
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Domain Name Display */
.domain-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    padding: 25px 50px 25px 20px;
    text-align: center;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    border-bottom: 3px solid #ff6b35;
    word-break: break-word;
}

/* Domain Info Section */
.domain-meta {
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.domain-extension {
    background: #212529;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.domain-category {
    background: #f0f2f5;
    color: #495057;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.domain-tier {
    background: #ff6b35;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* View Button */
.view-profile,
.view-details {
    display: block;
    padding: 18px;
    text-align: center;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-profile:hover,
.view-details:hover {
    background: linear-gradient(135deg, #e55a2b, #ff6b35);
    transform: translateY(-2px);
}

/* ==========================================================================
   FAVORITES SYSTEM
   ========================================================================== */

/* Favorite Button on Domain Cards */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: 2px solid #ff6b35;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    line-height: 1;
}

.favorite-btn:hover {
    background: #fff5f0;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    border-width: 3px;
}

.favorite-btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
    animation: heartPop 0.3s ease;
}

.favorite-btn.active:hover {
    background: #e55a2b;
    border-color: #e55a2b;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(-5deg); }
    75% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1); }
}

/* Card Variations */
.domain-card.premium .domain-name {
    background: linear-gradient(135deg, #f0f0f0, #fafafa);
    color: #000000;
    font-weight: 800;
}

.domain-card.standard .domain-name {
    background: linear-gradient(135deg, #ececec, #f8f8f8);
    color: #000000;
}

.domain-card.market .domain-name {
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    color: #000000;
}

/* ==========================================================================
   FAVORITES BAR
   ========================================================================== */

.favorites-bar {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.favorites-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.favorites-icon {
    font-size: 1.5rem;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.favorites-label {
    font-size: 1rem;
}

.favorites-count {
    background: white;
    color: #ff6b35;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
}

.favorites-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-view-favorites,
.btn-clear-favorites,
.btn-export-favorites {
    background: white;
    color: #ff6b35;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-view-favorites:hover,
.btn-clear-favorites:hover,
.btn-export-favorites:hover {
    background: #fff5f0;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn-clear-favorites {
    background: #ffebee;
    color: #c62828;
}

.btn-clear-favorites:hover {
    background: #ffcdd2;
}

/* ==========================================================================
   FAVORITES MODAL
   ========================================================================== */

.favorites-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.favorites-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.favorites-modal-header {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorites-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.favorites-modal-body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.favorite-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.favorite-item:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.favorite-domain-name {
    font-weight: 700;
    color: #212529;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.favorite-domain-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: #6c757d;
}

.favorite-remove-btn {
    background: #ffebee;
    color: #c62828;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.favorite-remove-btn:hover {
    background: #ffcdd2;
}

.favorites-modal-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-view-all-favorites,
.btn-close-modal {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-all-favorites {
    background: #ff6b35;
    color: white;
}

.btn-view-all-favorites:hover {
    background: #e55a2b;
}

.btn-close-modal {
    background: #6c757d;
    color: white;
}

.btn-close-modal:hover {
    background: #5a6268;
}

/* Notification Toast */
.favorite-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    z-index: 10001;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ==========================================================================
   FLOATING AFFILIATE SIDEBAR - Quick Access Tools
   ========================================================================== */

.floating-sidebar {
    position: fixed;
    right: -280px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px 0 0 12px;
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #ff6b35;
    border-right: none;
}

.floating-sidebar.active {
    right: 0;
}

/* Toggle Button */
.sidebar-toggle {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 120px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border-radius: 10px 0 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle:hover {
    width: 55px;
    left: -55px;
}

.sidebar-toggle-icon {
    color: white;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.sidebar-toggle-text {
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-top: 5px;
    letter-spacing: 1px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Sidebar Content */
.sidebar-content {
    padding: 25px 20px;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 5px;
}

.sidebar-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Tool Buttons */
.tool-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible; /* FIXED: Changed from hidden to visible */
}

.tool-btn:hover {
    background: white;
    border-color: #ff6b35;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.tool-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tool-btn:hover::before {
    transform: scaleY(1);
}

.tool-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.tool-info {
    flex: 1;
}

.tool-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #212529;
    display: block;
    margin-bottom: 2px;
}

.tool-desc {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.3;
}

/* Special badge for top recommendations */
.tool-btn.recommended {
    background: linear-gradient(135deg, #fff5f0, #fff);
    border-color: #ff6b35;
}

/* Badge base styles */
.tool-btn.recommended .tool-badge {
    position: absolute;
    top: -10px; /* Adjusted for better visibility */
    right: 10px;
    background: #ff6b35;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

/* Badge variations for different services */
.tool-btn.badge-top-rated .tool-badge {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.tool-btn.badge-best-value .tool-badge {
    background: linear-gradient(135deg, #f7931e, #ff9f40);
}

.tool-btn.badge-trending .tool-badge {
    background: linear-gradient(135deg, #ff5252, #ff6b35);
    animation: trendingPulse 2s infinite;
}

@keyframes trendingPulse {
    0%, 100% { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 0 2px 12px rgba(255, 82, 82, 0.4); }
}

.tool-btn.badge-pro-choice .tool-badge {
    background: linear-gradient(135deg, #673ab7, #7e57c2);
}

.tool-btn.badge-essential .tool-badge {
    background: linear-gradient(135deg, #00897b, #26a69a);
}

/* Badge hover effects */
.tool-btn:hover .tool-badge {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Close button */
.sidebar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: #6c757d;
}

.sidebar-close:hover {
    background: #ff6b35;
    color: white;
    transform: rotate(90deg);
}

/* Mobile adjustments for floating sidebar */
@media (max-width: 768px) {
    .floating-sidebar {
        width: 260px;
        right: -260px;
    }
    
    .sidebar-toggle {
        left: -45px;
        width: 45px;
        height: 100px;
    }
    
    .sidebar-toggle:hover {
        width: 48px;
        left: -48px;
    }
    
    .sidebar-toggle-icon {
        font-size: 1.3rem;
    }
    
    .sidebar-toggle-text {
        font-size: 0.65rem;
    }
    
    .sidebar-content {
        padding: 20px 15px;
    }
    
    .tool-btn {
        padding: 12px 14px;
    }
    
    .tool-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .tool-name {
        font-size: 0.9rem;
    }
    
    .tool-desc {
        font-size: 0.7rem;
    }
    
    .tool-btn.recommended .tool-badge {
        font-size: 0.6rem;
        padding: 2px 8px;
        top: -8px;
    }
}

/* ==========================================================================
   MOBILE RESPONSIVE - Updated for Ultra-Compact Design
   ========================================================================== */

/* Very specific fix for portfolio value title on small screens */
@media (max-width: 480px) {
    .portfolio-value-title {
        font-size: 0.65rem !important;
        letter-spacing: 0.2px !important;
        word-spacing: -1px;
    }
}

@media (max-width: 768px) {
    /* Dark Navigation Mobile */
    .navigation,
    .navbar,
    .menu {
        padding: 10px 15px;
    }
    
    /* Logo consistency */
    .header img,
    .navbar img,
    .navigation img,
    .logo,
    .site-logo,
    img[alt*="TopRankedDomains"],
    img[src*="logo"],
    img[class*="logo"] {
        max-width: 85% !important;
        height: auto !important;
        display: block;
        margin: 0 auto;
    }
    
    /* Ultra-Compact Header mobile */
    .header {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    .site-title {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    /* Ultra-Compact Stats Mobile - 2x2 Grid */
    .stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
        margin-top: 10px;
    }
    
    .stat-item {
        padding: 10px 8px;
        min-width: unset;
        width: 100%;
    }
    
    .stat-number {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0;
    }
    
    /* Ultra-Compact Portfolio Value Mobile */
    .portfolio-value-section {
        padding: 12px 10px;
        margin-bottom: 15px;
    }
    
    .portfolio-value-title {
        font-size: 0.75rem;
        margin-bottom: 8px;
        flex-wrap: wrap;
        gap: 5px;
        letter-spacing: 0.5px;
    }
    
    .portfolio-value-title::before,
    .portfolio-value-title::after {
        display: none; /* Hide decorative lines on mobile */
    }
    
    .portfolio-value-amount {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    
    .portfolio-value-note {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    /* Domain Grid Mobile */
    .domains-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .domain-name {
        font-size: 1rem;
        padding: 20px 55px 20px 15px;
    }
    
    /* Favorites Bar Mobile */
    .favorites-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .favorites-actions {
        width: 100%;
        justify-content: center;
    }
    
    .btn-view-favorites,
    .btn-clear-favorites,
    .btn-export-favorites {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    /* Favorites Modal Mobile */
    .favorites-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    /* Favorite Button Mobile */
    .favorite-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Filters Section Mobile */
    .filters-section {
        padding: 15px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .filter-label {
        min-width: unset;
        margin-bottom: 5px;
        display: block;
    }
    
    .search-input,
    .filter-select {
        width: 100%;
        min-width: unset;
    }
    
    .filter-btn,
    .clear-btn {
        width: 100%;
        padding: 12px 15px;
    }
}

/* Extra small devices */
@media (max-width: 479px) {
    /* Logo extra small */
    .header img,
    .navbar img,
    .navigation img,
    .logo,
    .site-logo,
    img[alt*="TopRankedDomains"],
    img[src*="logo"],
    img[class*="logo"] {
        max-width: 80% !important;
    }
    
    /* Compact Stats Extra Small */
    .stats {
        flex-direction: column;
        gap: 6px;
    }
    
    .stat-item {
        width: 100%;
        padding: 8px;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    /* Compact Portfolio Value Extra Small */
    .portfolio-value-section {
        padding: 10px 8px;
    }
    
    .portfolio-value-title {
        font-size: 0.7rem;
        display: block; /* Change from flex to block on very small screens */
        text-align: center;
        letter-spacing: 0.3px;
    }
    
    .portfolio-value-amount {
        font-size: 1.6rem;
    }
    
    .portfolio-value-note {
        font-size: 0.65rem;
        padding: 0 5px;
    }
    
    /* Favorites Bar Extra Small */
    .favorites-bar {
        padding: 12px 10px;
    }
    
    .favorites-icon {
        font-size: 1.2rem;
    }
    
    .favorites-label {
        font-size: 0.9rem;
    }
    
    .favorites-count {
        font-size: 1rem;
        padding: 4px 10px;
    }
    
    .btn-view-favorites,
    .btn-clear-favorites,
    .btn-export-favorites {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    /* Filters Extra Small */
    .filter-label {
        font-size: 0.85rem;
    }
    
    .search-input,
    .filter-select {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .filter-btn,
    .clear-btn {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a {
    background: white;
    color: #212529;
    border: 2px solid #e9ecef;
}

.pagination a:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: translateY(-2px);
}

.pagination .current {
    background: #ff6b35;
    color: white;
    border: 2px solid #ff6b35;
}

/* ==========================================================================
   Share Section
   ========================================================================== */

.share-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ff6b35;
    display: block;
    visibility: visible;
}

.share-title {
    color: #212529;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.share-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.share-buttons-main {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn-main {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    background: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.share-btn-main:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-submit {
    background: #ff6b35;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    margin-top: 10px;
}

.form-submit:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.required {
    color: #dc3545;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.success-message,
.error-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   Affiliate Section
   ========================================================================== */

.affiliate-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ff6b35;
}

.affiliate-title {
    color: #212529;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

.affiliate-subtitle {
    color: #6c757d;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.affiliate-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.affiliate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #ff6b35;
}

.affiliate-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.affiliate-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b35;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.affiliate-card h3 {
    color: #212529;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.affiliate-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.affiliate-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.affiliate-btn:hover {
    background: linear-gradient(45deg, #e55a2b, #e6851a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* ==========================================================================
   AdSense Container
   ========================================================================== */

.adsense-container {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    padding: 10px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #e9ecef;
}

.adsense-label {
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Newsletter Signup - DARK THEME TO MATCH FOOTER
   ========================================================================== */

.newsletter-signup {
    background: #343a40;  /* Dark gray to match footer */
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 400px;
    margin: 20px auto 0;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-btn {
    background: #ff6b35;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.newsletter-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* ==========================================================================
   Footer - DARK THEME
   ========================================================================== */

.footer,
footer {
    background: #343a40;  /* Dark gray */
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.footer a,
footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover,
footer a:hover {
    color: #ff6b35;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.no-results {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 12px;
    color: #6c757d;
    border-left: 4px solid #ff6b35;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #212529;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 3rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
