/* Title Display Styles for Better Readability */

/* Base title formatting */
.formatted-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Different title sizes */
.title-short {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.title-medium {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.title-long {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Multi-line title formatting */
.title-multiline {
    white-space: pre-line;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

/* Responsive font sizing for different line counts */
.title-1-line {
    font-size: 1.4rem;
    line-height: 1.2;
}

.title-2-lines {
    font-size: 1.2rem;
    line-height: 1.3;
}

.title-3-lines {
    font-size: 1.1rem;
    line-height: 1.3;
}

.title-4-lines {
    font-size: 1rem;
    line-height: 1.3;
}

.title-5-plus-lines {
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Title components styling */
.title-brand {
    color: #007bff;
    font-weight: 700;
}

.title-color {
    color: #6c757d;
    font-weight: 500;
}

.title-size {
    color: #28a745;
    font-weight: 500;
}

.title-features {
    color: #fd7e14;
    font-weight: 500;
    font-size: 0.9em;
}

/* Use case specific styles */
.title-hero {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    margin-bottom: 1rem;
}

.title-card {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.title-list {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.title-mobile {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.title-seo {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

/* Responsive title sizing */
@media (max-width: 768px) {
    .title-hero {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .title-card {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .title-list {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .title-mobile {
        font-size: 0.95rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .title-hero {
        font-size: 1.25rem;
        line-height: 1.1;
    }
    
    .title-card {
        font-size: 0.95rem;
        line-height: 1.1;
    }
    
    .title-list {
        font-size: 1rem;
        line-height: 1.2;
    }
    
    .title-mobile {
        font-size: 0.9rem;
        line-height: 1.1;
    }
}

/* Special formatting for different contexts */
.hero-section .formatted-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.product-card .formatted-title {
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.comparison-table .formatted-title {
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Title with emphasis */
.title-emphasized {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Title with underline accent */
.title-accented {
    position: relative;
    padding-bottom: 0.25rem;
}

.title-accented::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

/* Truncated title with ellipsis */
.title-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Title with hover effects */
.title-interactive {
    transition: all 0.3s ease;
    cursor: pointer;
}

.title-interactive:hover {
    transform: translateY(-1px);
    color: #007bff;
}

/* Print styles */
@media print {
    .formatted-title {
        color: #000 !important;
        font-size: 12pt !important;
        line-height: 1.2 !important;
    }
    
    .title-brand,
    .title-color,
    .title-size,
    .title-features {
        color: #000 !important;
    }
}
