/* ===================================
   Roblox Tools Website - Main Styles
   =================================== */

/* === CSS Variables === */
:root {
    --primary-color: #E2231A;
    --secondary-color: #00A2FF;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --font-main: 'Poppins', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* === Dark Mode Variables === */
body.dark-mode {
    --text-dark: #e0e0e0;
    --text-light: #b0b0b0;
    --light-bg: #2a2a3e;
    --border-color: #3a3a4e;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.4);
}

body.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

/* Dark Mode - Header */
body.dark-mode .header {
    background: #16213e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode .logo a {
    color: var(--primary-color);
}

body.dark-mode .main-nav a {
    color: #e0e0e0;
}

body.dark-mode .main-nav a:hover,
body.dark-mode .main-nav a.active {
    color: var(--primary-color);
}

body.dark-mode .dropdown-menu {
    background: #16213e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .dropdown-menu::before {
    border-bottom-color: #16213e;
}

body.dark-mode .dropdown-header {
    background: linear-gradient(135deg, var(--primary-color), #b71c1c);
}

body.dark-mode .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(226, 35, 26, 0.15), rgba(226, 35, 26, 0.08));
}

body.dark-mode .dropdown-icon {
    background: linear-gradient(135deg, rgba(226, 35, 26, 0.2), rgba(226, 35, 26, 0.1));
}

body.dark-mode .dropdown-title {
    color: #e0e0e0;
}

body.dark-mode .dropdown-item:hover .dropdown-title {
    color: var(--primary-color);
}

body.dark-mode .dropdown-desc {
    color: #a0a0a0;
}

body.dark-mode .mobile-menu-toggle,
body.dark-mode .theme-toggle {
    color: #e0e0e0;
}

/* Dark Mode - Cards */
body.dark-mode .tool-card,
body.dark-mode .blog-card,
body.dark-mode .post-card,
body.dark-mode .feature-card,
body.dark-mode .calculator-card {
    background: #16213e;
    color: #e0e0e0;
    border: 1px solid #2a2a3e;
}

body.dark-mode .tool-card:hover,
body.dark-mode .blog-card:hover,
body.dark-mode .post-card:hover,
body.dark-mode .feature-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

body.dark-mode .tool-card h3,
body.dark-mode .blog-card h3,
body.dark-mode .post-card h3,
body.dark-mode .feature-card h3 {
    color: #fff;
}

body.dark-mode .tool-card p,
body.dark-mode .blog-card p,
body.dark-mode .post-card p,
body.dark-mode .feature-card p {
    color: var(--text-light);
}

/* Dark Mode - Forms */
body.dark-mode .form-control,
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="number"],
body.dark-mode textarea,
body.dark-mode select {
    background: #16213e;
    border-color: #3a3a4e;
    color: #e0e0e0;
}

body.dark-mode .form-control:focus {
    border-color: var(--primary-color);
    background: #1a1a2e;
}

body.dark-mode .form-group label {
    color: #e0e0e0;
}

/* Dark Mode - Results */
body.dark-mode .results-box {
    background: #16213e;
    border: 1px solid #2a2a3e;
}

body.dark-mode .result-item {
    background: #1a1a2e;
    color: #e0e0e0;
    border: 1px solid #2a2a3e;
}

body.dark-mode .result-item.highlight {
    background: #3a3a1e;
    border-color: #4a4a2e;
}

body.dark-mode .result-item.success {
    background: #1e3a2e;
    border-color: #2e4a3e;
}

/* Dark Mode - Sections */
body.dark-mode .tools-section,
body.dark-mode .blog-section,
body.dark-mode .features-section,
body.dark-mode .contact-section {
    background: #1a1a2e;
}

body.dark-mode .section-title {
    color: #fff;
}

/* Dark Mode - Footer */
body.dark-mode .footer {
    background: #0f1419;
    color: #b0b0b0;
}

body.dark-mode .footer h4 {
    color: #fff;
}

body.dark-mode .footer a:hover {
    color: var(--primary-color);
}

/* Dark Mode - Buttons */
body.dark-mode .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-mode .btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Dark Mode - Blog Post */
body.dark-mode .post-content {
    color: #e0e0e0;
}

body.dark-mode .post-content h1,
body.dark-mode .post-content h2,
body.dark-mode .post-content h3,
body.dark-mode .post-content h4,
body.dark-mode .post-content h5,
body.dark-mode .post-content h6 {
    color: #fff;
}

body.dark-mode .post-meta,
body.dark-mode .meta,
body.dark-mode .blog-card .meta,
body.dark-mode .post-card .meta {
    color: var(--text-light);
}

body.dark-mode code {
    background: #0f1419;
    color: #f97583;
    border: 1px solid #2a2a3e;
}

body.dark-mode pre {
    background: #0f1419;
    border: 1px solid #2a2a3e;
}

/* Dark Mode - Cookie Consent */
body.dark-mode .cookie-consent {
    background: #16213e;
    color: #e0e0e0;
}

/* Dark Mode - Category Filter */
body.dark-mode .category-btn {
    background: #16213e;
    color: #e0e0e0;
    border: 1px solid #2a2a3e;
}

body.dark-mode .category-btn:hover,
body.dark-mode .category-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Dark Mode - Mobile Navigation */
body.dark-mode .main-nav {
    background: #16213e;
}

body.dark-mode .main-nav a {
    border-bottom-color: #2a2a3e;
}

body.dark-mode .dropdown-menu {
    background: #1a1a2e;
}

body.dark-mode .dropdown-item {
    border-bottom-color: #2a2a3e;
}

body.dark-mode .dropdown-item:hover {
    background: rgba(226, 35, 26, 0.1);
}

/* Dark Mode - Modal */
body.dark-mode .modal {
    background: rgba(0,0,0,0.8);
}

body.dark-mode .modal-content {
    background: #16213e;
}

body.dark-mode .modal-content h2 {
    background: linear-gradient(135deg, var(--primary-color), #b71c1c);
}

body.dark-mode .modal-content .form-group label {
    color: #e0e0e0;
}

body.dark-mode .modal-content .form-group input,
body.dark-mode .modal-content .form-group textarea {
    background: #1a1a2e;
    border-color: #3a3a4e;
    color: #e0e0e0;
}

body.dark-mode .modal-content .form-group input:focus,
body.dark-mode .modal-content .form-group textarea:focus {
    background: #1a1a2e;
    border-color: var(--primary-color);
}

body.dark-mode .form-message.alert-success {
    background: #1e3a2e;
    color: #a8e6a8;
    border-color: #2e4a3e;
}

body.dark-mode .form-message.alert-error {
    background: #3a1e1e;
    color: #f5a8a8;
    border-color: #4a2e2e;
}

/* Dark Mode - Contact Section */
body.dark-mode .contact-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background: #fff;
}

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

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

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Header === */
.header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Dropdown - Professional Mega Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 0;
    min-width: 380px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-header {
    background: linear-gradient(135deg, var(--primary-color), #b71c1c);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-header span {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(226, 35, 26, 0.08), rgba(226, 35, 26, 0.04));
    transform: translateX(4px);
}

.dropdown-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(226, 35, 26, 0.1), rgba(226, 35, 26, 0.05));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.dropdown-icon i {
    font-size: 1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.dropdown-item:hover .dropdown-icon {
    background: linear-gradient(135deg, var(--primary-color), #b71c1c);
    transform: scale(1.05);
}

.dropdown-item:hover .dropdown-icon i {
    color: #fff;
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dropdown-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.dropdown-item:hover .dropdown-title {
    color: var(--primary-color);
}

.dropdown-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.3;
}

/* Dropdown animation for items */
.dropdown-item {
    opacity: 0;
    transform: translateY(-10px);
}

.dropdown:hover .dropdown-item {
    opacity: 1;
    transform: translateY(0);
}

.dropdown:hover .dropdown-item:nth-child(1) { transition-delay: 0.05s; }
.dropdown:hover .dropdown-item:nth-child(2) { transition-delay: 0.1s; }
.dropdown:hover .dropdown-item:nth-child(3) { transition-delay: 0.15s; }
.dropdown:hover .dropdown-item:nth-child(4) { transition-delay: 0.2s; }
.dropdown:hover .dropdown-item:nth-child(5) { transition-delay: 0.25s; }
.dropdown:hover .dropdown-item:nth-child(6) { transition-delay: 0.3s; }

.mobile-menu-toggle,
.theme-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #b71c1c);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background: #0088cc;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-warning {
    background: var(--warning);
    color: #000;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* === Tools Section === */
.tools-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #b71c1c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
    font-size: 2rem;
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tool-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* === Calculator Pages === */
.tool-page {
    padding: 3rem 0;
    background: var(--light-bg);
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tool-header h1 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.range-slider {
    width: 100%;
}

.quick-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.results-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.results-box h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border-radius: 8px;
}

.result-item.highlight {
    background: #fff3cd;
}

.result-item.success {
    background: #d4edda;
}

.result-item.large {
    font-size: 1.2rem;
    font-weight: 700;
}

.result-label {
    font-weight: 600;
}

.result-value {
    font-weight: 700;
    color: var(--primary-color);
}

/* === Sidebar === */
.tool-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.sidebar-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.facts-list {
    list-style: none;
}

.facts-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.facts-list i {
    color: var(--success);
    margin-right: 0.5rem;
}

/* === Blog === */
.blog-page {
    padding: 3rem 0;
    background: var(--light-bg);
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.blog-controls {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.category-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-dark);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card,
.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Stagger animation for multiple cards */
.blog-card:nth-child(1),
.post-card:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-card:nth-child(2),
.post-card:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-card:nth-child(3),
.post-card:nth-child(3) {
    animation-delay: 0.3s;
}

.blog-card:nth-child(4),
.post-card:nth-child(4) {
    animation-delay: 0.4s;
}

.blog-card:nth-child(5),
.post-card:nth-child(5) {
    animation-delay: 0.5s;
}

.blog-card:nth-child(6),
.post-card:nth-child(6) {
    animation-delay: 0.6s;
}

.blog-card:nth-child(7),
.post-card:nth-child(7) {
    animation-delay: 0.7s;
}

.blog-card:nth-child(8),
.post-card:nth-child(8) {
    animation-delay: 0.8s;
}

.blog-card:nth-child(9),
.post-card:nth-child(9) {
    animation-delay: 0.9s;
}

.blog-card:hover,
.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-image,
.post-image {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.blog-image img,
.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img,
.post-card:hover .post-image img {
    transform: scale(1.1);
}

.blog-category,
.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

.blog-content,
.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3,
.post-content h2.post-title {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.post-card .post-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-content h3 a,
.post-content h2 a,
.post-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.blog-content h3 a:hover,
.post-content h2 a:hover,
.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-meta,
.post-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-meta span,
.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.read-more:hover {
    text-decoration: underline;
    gap: 0.75rem;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

.blog-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.popular-list {
    list-style: none;
    padding: 0;
}

.popular-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-list li:last-child {
    border-bottom: none;
}

.popular-list a {
    color: var(--text-dark);
    font-weight: 500;
}

.popular-list a:hover {
    color: var(--primary-color);
}

.post-views {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: var(--text-dark);
    padding: 0.5rem;
    display: block;
    border-radius: 6px;
    transition: var(--transition);
}

.category-list a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.search-info {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.affiliate-widget {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    color: #fff;
}

.affiliate-widget h3 {
    color: #fff;
}

.affiliate-widget p {
    color: rgba(255,255,255,0.9);
}

/* === Footer === */
.footer {
    background: var(--dark-bg);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
}

.footer-section a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-link {
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 8px;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.modal-content {
    background: #fff;
    margin: 0 auto;
    padding: 0;
    border-radius: 16px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

.modal-content h2 {
    background: linear-gradient(135deg, var(--primary-color), #b71c1c);
    color: #fff;
    padding: 2rem;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-content h2::before {
    content: '\f0e0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.5rem;
}

.modal-content form {
    padding: 2rem;
}

.modal-content .form-group {
    margin-bottom: 1.5rem;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.modal-content .form-group input,
.modal-content .form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    background: #fff;
}

.modal-content .form-group input:focus,
.modal-content .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(226, 35, 26, 0.1);
    transform: translateY(-2px);
}

.modal-content .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.modal-content .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.modal-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(226, 35, 26, 0.3);
}

.modal-content .btn i {
    font-size: 1.2rem;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255,255,255,0.9);
    z-index: 10;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    line-height: 1;
}

.close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg) scale(1.1);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.form-message.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Section Enhancement */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-content .btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(226, 35, 26, 0.25);
}

.contact-content .btn-lg:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(226, 35, 26, 0.35);
}

.contact-content .btn-lg i {
    font-size: 1.3rem;
}

/* === Responsive Design === */
@media (max-width: 1200px) {
    .blog-grid,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }

    .tool-sidebar {
        position: static;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .blog-grid,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
        padding: 1rem 0;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav a::after {
        display: none;
    }

    /* Mobile Dropdown */
    .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: var(--light-bg);
        display: none;
        min-width: 100%;
        border: none;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-header {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }

    .dropdown-grid {
        padding: 0;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
        opacity: 1;
        transform: none;
    }

    .dropdown-item:hover {
        transform: none;
        background: rgba(226, 35, 26, 0.05);
    }

    .dropdown-icon {
        width: 36px;
        height: 36px;
    }

    .dropdown-icon i {
        font-size: 0.9rem;
    }

    .dropdown-title {
        font-size: 0.9rem;
    }

    .dropdown-desc {
        font-size: 0.75rem;
    }

    /* Mobile Overlay */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    body.menu-open::before {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open {
        overflow: hidden;
    }

    .mobile-menu-toggle,
    .theme-toggle {
        display: block;
    }

    .header-content {
        position: relative;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Grids Mobile */
    .tools-grid,
    .blog-grid,
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .search-form {
        flex-direction: column;
    }

    .category-filter {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Contact Form Mobile */
    .contact-form {
        padding: 0;
    }

    /* Newsletter Mobile */
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
    }

    /* Container Padding */
    .container {
        padding: 0 1rem;
    }

    /* Sections Padding */
    .tools-section,
    .blog-section,
    .features-section,
    .contact-section {
        padding: 3rem 0;
    }

    /* Calculator Card Mobile */
    .calculator-card {
        padding: 1.5rem;
    }

    /* Form Group Mobile */
    .form-group label {
        font-size: 0.95rem;
    }

    .form-control {
        font-size: 0.95rem;
        padding: 0.65rem 0.85rem;
    }

    /* Result Item Mobile */
    .result-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .result-item span {
        text-align: left;
    }

    .result-item.large {
        font-size: 1.1rem;
    }

    /* Quick Buttons Mobile */
    .quick-buttons {
        gap: 0.5rem;
    }

    .quick-buttons .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: calc(50% - 0.25rem);
        font-size: 0.85rem;
    }

    /* Results Box Mobile */
    .results-box {
        padding: 1rem;
    }

    /* Blog Card Mobile */
    .blog-card h3 {
        font-size: 1.1rem;
    }

    .blog-card .meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Post Card Mobile */
    .post-card h3,
    .post-card .post-title {
        font-size: 1.05rem;
    }

    /* Modal Mobile */
    .modal {
        padding: 1rem 0.5rem;
    }

    .modal-content {
        border-radius: 12px;
        max-width: 95%;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        padding: 1.5rem;
    }

    .modal-content h2::before {
        font-size: 1.3rem;
    }

    .modal-content form {
        padding: 1.5rem;
    }

    .close {
        right: 1rem;
        top: 1.5rem;
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .contact-content .btn-lg {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* === Features Section === */
.features-section {
    padding: 4rem 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    transition: var(--transition);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #b71c1c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* === Affiliate Section === */
.affiliate-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    text-align: center;
    color: #fff;
}

.affiliate-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.affiliate-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.affiliate-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    position: relative;
    min-height: 60px;
}

.affiliate-links .btn {
    flex: 0 1 auto;
    min-width: 200px;
}

/* Affiliate Button Rotation Animation */
.affiliate-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.affiliate-btn.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    position: relative;
    left: auto;
    transform: translateY(0);
}

/* Sidebar Affiliate Button Rotation */
.affiliate-rotation {
    position: relative;
    min-height: 50px;
}

.affiliate-btn-sidebar {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    position: absolute;
    width: 100%;
    pointer-events: none;
}

.affiliate-btn-sidebar.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

@media (max-width: 768px) {
    .affiliate-links {
        flex-direction: column;
        align-items: center;
    }

    .affiliate-links .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* === Contact Section === */
.contact-section {
    padding: 4rem 0;
    background: var(--light-bg);
    text-align: center;
}

.contact-content {
    margin-top: 2rem;
}

/* === Newsletter Form === */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.form-message {
    margin-top: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === Blog Preview === */
.blog-preview {
    padding: 4rem 0;
    background: #fff;
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

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

.blog-card .btn-link:hover {
    text-decoration: underline;
}

/* === Info Section === */
.info-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.info-section h2 {
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
}

.info-section h2:first-child {
    margin-top: 0;
}

.info-section h3 {
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.4rem;
}

.info-section ul,
.info-section ol {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}

.info-section li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.info-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.info-section code {
    background: var(--light-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--primary-color);
}

/* === Related Tools === */
.related-tools {
    margin-top: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.related-tools h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    color: var(--text-dark);
}

.related-card:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.related-card i {
    font-size: 2rem;
}

/* === AdSense Sections === */
.adsense-section,
.adsense-block,
.adsense-in-content {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    text-align: center;
}

/* === Conversion Tables === */
.conversion-table {
    width: 100%;
    margin-top: 1rem;
}

.conversion-table table {
    width: 100%;
    border-collapse: collapse;
}

.conversion-table th,
.conversion-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.conversion-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-dark);
}

.conversion-table tr:hover {
    background: var(--light-bg);
}

/* === Username Generator === */
.username-results {
    margin-top: 2rem;
}

.username-list {
    display: grid;
    gap: 0.75rem;
}

.username-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.username-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.username-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.copy-btn:hover {
    background: #0088cc;
}

.hint {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

/* === Range Slider === */
.range-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* === Cost Cards === */
.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.cost-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.cost-card.highlight {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(226, 35, 26, 0.1);
}

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

.cost-period {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cost-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cost-detail {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* === Breakdown Table === */
.breakdown-table {
    margin-top: 1.5rem;
}

.breakdown-table h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.breakdown-table table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.breakdown-table th,
.breakdown-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-table th {
    background: var(--light-bg);
    font-weight: 600;
}

.breakdown-table tr:last-child td {
    border-bottom: none;
}

.breakdown-table tr:hover {
    background: var(--light-bg);
}

/* === Comparison Table === */
.comparison-table {
    margin-top: 2rem;
}

.comparison-table h4 {
    margin-bottom: 1rem;
}

.comparison-table table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* === Converter Tabs === */
.converter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.tab-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.converter-panel {
    display: none;
}

.converter-panel:first-of-type {
    display: block;
}

/* === Utility Classes === */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* === Scroll to Top === */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
}

/* === Cookie Consent === */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    color: #fff;
    padding: 1rem;
    z-index: 1500;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   Single Blog Post Page Styles
   =================================== */

.single-post {
    padding: 2rem 0 4rem 0;
    background: #fff;
}

.post-header {
    margin-bottom: 3rem;
}

.post-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.post-category-badge:hover {
    background: #c31e16;
    transform: translateY(-2px);
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.post-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-left {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    background: white;
    cursor: pointer;
}

.share-btn.twitter {
    color: #1DA1F2;
    border-color: #1DA1F2;
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    color: white;
}

.share-btn.facebook {
    color: #1877F2;
    border-color: #1877F2;
}

.share-btn.facebook:hover {
    background: #1877F2;
    color: white;
}

.share-btn.reddit {
    color: #FF4500;
    border-color: #FF4500;
}

.share-btn.reddit:hover {
    background: #FF4500;
    color: white;
}

.share-btn.copy {
    color: #666;
    border-color: #666;
}

.share-btn.copy:hover {
    background: #666;
    color: white;
}

/* Featured Image */
.post-featured-image {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0 3rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

/* Post Layout */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 3rem;
}

.post-main {
    min-width: 0;
}

/* Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem 0;
    color: var(--text-dark);
    line-height: 1.3;
}

.post-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-dark);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
}

.post-content strong {
    font-weight: 600;
    color: var(--text-dark);
}

.post-content code {
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-light);
}

/* Tags */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 3rem 0 2rem 0;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.post-tags i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.post-tags .tag {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.post-tags .tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Share Footer */
.post-share-footer {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    text-align: center;
    color: white;
}

.post-share-footer h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.share-buttons-large {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-social {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: 2px solid white;
    background: transparent;
    color: white;
}

.btn-social:hover {
    background: white;
    transform: translateY(-2px);
}

.btn-social.twitter:hover {
    color: #1DA1F2;
}

.btn-social.facebook:hover {
    color: #1877F2;
}

.btn-social.reddit:hover {
    color: #FF4500;
}

/* Related Posts */
.related-posts {
    margin: 4rem 0 3rem 0;
}

.related-posts h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.related-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card h4 {
    padding: 1rem 1rem 0.5rem 1rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-card h4 a {
    color: var(--text-dark);
}

.related-card h4 a:hover {
    color: var(--primary-color);
}

.related-card p {
    padding: 0 1rem 1rem 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Post Navigation */
.post-navigation {
    margin: 3rem 0 2rem 0;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* Sidebar */
.post-sidebar {
    position: relative;
}

.sidebar-widget {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.popular-list {
    list-style: none;
}

.popular-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-list li:last-child {
    border-bottom: none;
}

.popular-list a {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.popular-list a:hover {
    color: var(--primary-color);
}

.post-views {
    font-size: 0.85rem;
    color: var(--text-light);
}

.affiliate-widget {
    background: linear-gradient(135deg, #FFA500 0%, #FF6B00 100%);
    border: none;
    color: white;
}

.affiliate-widget h3 {
    color: white;
}

.affiliate-widget p {
    margin-bottom: 1rem;
    opacity: 0.95;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.sticky {
    position: sticky;
    top: 100px;
}

/* AdSense Styling */
.adsense-in-content {
    margin: 2rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.sidebar-ad {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    min-height: 250px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .post-sidebar {
        order: 2;
    }

    .sticky {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .post-header h1 {
        font-size: 2rem;
    }

    .post-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-left {
        flex-direction: column;
        gap: 0.75rem;
    }

    .share-buttons {
        margin-top: 1rem;
    }

    .post-featured-image img {
        min-height: 250px;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-content h2 {
        font-size: 1.6rem;
    }

    .post-content h3 {
        font-size: 1.3rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons-large {
        flex-direction: column;
    }

    .btn-social {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Header */
    .logo a {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .mobile-menu-toggle {
        font-size: 1.3rem;
    }

    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.6rem;
    }

    .tools-section,
    .blog-section,
    .features-section,
    .contact-section {
        padding: 2rem 0;
    }

    /* Tool Cards */
    .tool-card h3 {
        font-size: 1.1rem;
    }

    /* Feature Cards */
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        font-size: 0.9rem;
    }

    /* Blog Post */
    .post-header h1 {
        font-size: 1.6rem;
    }

    .post-featured-image img {
        min-height: 200px;
    }

    .post-content {
        font-size: 0.95rem;
    }

    /* Contact Form */
    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
    }

    /* Container */
    .container {
        padding: 0 0.75rem;
    }

    /* Calculator Card */
    .calculator-card {
        padding: 1rem;
    }

    .calculator-card h2 {
        font-size: 1.3rem;
    }

    /* Form Controls */
    .form-control {
        padding: 0.6rem 0.75rem;
    }

    /* Quick Buttons */
    .quick-buttons .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    /* Result Item */
    .result-item {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    /* Blog/Post Cards */
    .blog-card,
    .post-card {
        padding: 1rem;
    }

    .blog-card h3,
    .post-card h3,
    .post-card .post-title {
        font-size: 0.95rem;
    }

    .blog-card .meta,
    .post-card .meta {
        font-size: 0.85rem;
    }

    /* Affiliate Section */
    .affiliate-content h2 {
        font-size: 1.4rem;
    }

    .affiliate-content p {
        font-size: 1rem;
    }

    /* Modal Small Mobile */
    .modal {
        padding: 0.5rem;
    }

    .modal-content h2 {
        font-size: 1.3rem;
        padding: 1.25rem 1rem;
    }

    .modal-content form {
        padding: 1.25rem 1rem;
    }

    .modal-content .form-group {
        margin-bottom: 1.25rem;
    }

    .modal-content .form-group input,
    .modal-content .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .modal-content .btn {
        padding: 0.85rem;
        font-size: 1rem;
    }

    .contact-content .btn-lg {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}
