/* Lorem Ipsum Generator Styles - Emerald Theme */

/* Reset for our tool only */
.lorem-ipsum-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Theme Color Variables */
:root {
    --primary-color: #10b981;
    --primary-dark: #0da271;
    --primary-light: #a7f3d0;
    --secondary-color: #6b7280;
    --background-light: #f9fafb;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --border-color: #e5e7eb;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb-container {
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-bottom: 0;
}

.breadcrumb-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.breadcrumb-link:hover {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary-dark);
}

.breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    color: #6b7280;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #9ca3af;
    font-size: 0.8rem;
}

.breadcrumb-icon {
    font-size: 0.9rem;
}

/* ===== TOOL DESCRIPTION ===== */
.tool-description-section {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: white;
    padding: 40px 0 20px;
    margin-bottom: 0;
}

.tool-description-section .lorem-ipsum-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

.tool-main-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.tool-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.4;
}

.start-generating-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
}

.cta-icon {
    font-size: 1.5rem;
    color: #4cd964;
    animation: bounce 2s infinite;
}

.cta-text {
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== MAIN CONTAINER ===== */
.lorem-ipsum-container {
    background-color: var(--background-light);
    padding: 20px 0 40px;
    width: 100%;
}

.lorem-ipsum-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== LAYOUT ===== */
.tool-layout {
    display: flex;
    gap: 30px;
    position: relative;
    margin-top: 20px;
}

.main-content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-area {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 25px;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-description {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.section-icon {
    font-size: 1.2rem;
}

/* ===== CONTROLS SECTION ===== */
.controls-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 25px;
    width: 100%;
}

.control-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.control-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.range-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 5px;
}

.dual-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== STYLE CONTROLS ===== */
.style-controls {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.style-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: block;
}

.style-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.style-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.style-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.checkbox-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* ===== BUTTONS ===== */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    text-align: center;
}

.btn-large {
    padding: 14px 24px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: #374151;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-icon {
    font-size: 1.1rem;
}

.additional-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== PRIVACY NOTICE ===== */
.privacy-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 15px;
    background-color: #f0f9ff;
    border: 1px solid #b3e0ff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0066cc;
}

.privacy-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.privacy-text {
    line-height: 1.4;
}

/* ===== OUTPUT SECTION ===== */
.output-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 25px;
    width: 100%;
}

.format-selector {
    display: flex;
    gap: 5px;
    background: #f3f4f6;
    padding: 5px;
    border-radius: 8px;
}

.format-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s;
}

.format-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.output-container {
    position: relative;
    margin: 20px 0;
}

#generatedText {
    width: 100%;
    min-height: 300px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Georgia', serif;
    resize: vertical;
    background: #f9fafb;
    color: #374151;
}

.output-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    font-size: 0.9rem;
    color: #6b7280;
}

.stat-item strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.copy-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
    pointer-events: none;
}

.copy-status.show {
    opacity: 1;
    transform: translateY(0);
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-copy-btn {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.quick-copy-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== PREVIEW ===== */
.preview-container {
    margin-top: 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.preview-header {
    background: #f9fafb;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.preview-content {
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    max-height: 300px;
    overflow-y: auto;
}

/* ===== STATISTICS ===== */
.stats-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 25px;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
}

/* ===== ADS ===== */
.ad-container {
    margin: 25px 0;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #eaeaea;
}

.ad-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-unit {
    margin: 0 auto;
    overflow: hidden;
}

.ad-top-sidebar {
    margin-top: 0;
}

/* Hide mobile ads on desktop */
@media (min-width: 769px) {
    .ad-mobile {
        display: none !important;
    }
    .ad-top-mobile {
        display: none !important;
    }
}

/* Show mobile ads on mobile */
@media (max-width: 768px) {
    .ad-desktop {
        display: none !important;
    }
    .ad-container {
        margin: 20px 0;
        padding: 12px;
    }
}

/* ===== SIDEBAR ===== */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sticky-ad {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.sidebar-widget h3 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-icon {
    font-size: 1rem;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.btn-clear-history {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #dc2626;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
}

.template-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.template-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #374151;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
}

.template-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.template-icon {
    font-size: 1.2rem;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
}

.empty-history {
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
    padding: 20px;
}

.related-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-tool {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s;
}

.related-tool:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.tool-icon {
    font-size: 1.1rem;
}

/* ===== FEATURES ===== */
.tool-description-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-top: 20px;
}

.tool-description-content .tool-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 1.1rem;
}

.feature-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== HOW TO USE ===== */
.how-to-use-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.how-to-use-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.step-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.step-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== FAQ ===== */
.faq-section {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    margin-top: 30px;
    box-shadow: var(--card-shadow);
}

.faq-grid {
    display: grid;
    gap: 20px;
}

.faq-item {
    background: #f9fafb;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.faq-icon {
    font-size: 1.2rem;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.faq-answer {
    padding: 0 20px 20px 65px;
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .tool-layout {
        flex-direction: column;
    }
    .sidebar-area {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        order: 2;
    }
    .sticky-ad {
        position: static;
    }
    .main-content-area {
        order: 1;
    }
    .tool-main-title {
        font-size: 2.2rem;
    }
    .control-row {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Styles (max 767px) */
@media (max-width: 767px) {
    .tool-description-section {
        padding: 30px 0 15px;
    }
    .tool-main-title {
        font-size: 1.8rem;
    }
    .tool-subtitle {
        font-size: 1rem;
    }
    .controls-section,
    .output-section,
    .stats-section,
    .tool-description-content,
    .faq-section {
        padding: 20px;
    }
    .section-header h2 {
        font-size: 1.4rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-value {
        font-size: 1.8rem;
    }
    .action-buttons {
        grid-template-columns: 1fr;
    }
    .style-buttons {
        flex-wrap: wrap;
    }
    .quick-actions {
        flex-direction: column;
    }
    .breadcrumb-inline {
        font-size: 0.85rem;
    }
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 3px 6px;
    }
    .breadcrumb-icon {
        font-size: 0.85rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .faq-question h3 {
        font-size: 1rem;
    }
    .faq-answer {
        padding: 0 15px 15px 55px;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-card {
        padding: 15px;
    }
    .tool-main-title {
        font-size: 1.6rem;
    }
    .section-icon {
        font-size: 1.1rem;
    }
    .cta-text {
        font-size: 1.1rem;
        padding: 6px 15px;
    }
    .ad-container {
        padding: 10px;
    }
}

/* Large Desktop (min 1200px) */
@media (min-width: 1200px) {
    .lorem-ipsum-wrapper {
        padding: 0;
    }
}

/* Print Styles */
@media print {
    .ad-container,
    .sidebar-area,
    .action-buttons,
    .quick-actions,
    .faq-section {
        display: none !important;
    }
    .lorem-ipsum-container {
        background: white;
        padding: 0;
    }
    .tool-description-section {
        background: white !important;
        color: black !important;
        padding: 20px 0 !important;
    }
}