/* Tool Page Common Styles */
.tool-page {
    padding-top: 0;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: #667eea;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ddd;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

.tool-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.tool-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-separator {
    opacity: 0.5;
}

.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

/* X/Twitter Trends Specific Styles */
.x-trends-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.12);
    overflow: hidden;
}

.x-trends-header {
    background: linear-gradient(135deg, #000000 0%, #14171a 100%);
    padding: 45px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.x-trends-header::before {
    content: '𝕏';
    position: absolute;
    font-size: 200px;
    opacity: 0.05;
    top: -40px;
    right: -20px;
    font-weight: 700;
}

.x-trends-header h2 {
    font-size: 38px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.x-trends-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

.x-trends-body {
    padding: 40px 30px;
}

/* API Notice */
.x-api-notice {
    background: #e8f4f8;
    border-left: 5px solid #1da1f2;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.x-api-notice h4 {
    color: #0d8bd9;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

.x-api-notice p {
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.6;
    font-size: 14px;
}

.x-api-notice p:last-child {
    margin-bottom: 0;
}

/* Search Section */
.x-search-section {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(29,161,242,0.3);
}

.x-search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.x-input-group {
    position: relative;
}

.x-input-group label {
    display: block;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.x-input-group select {
    width: 100%;
    padding: 14px 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #14171a;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
}

.x-input-group select:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}

.x-input-group select:hover {
    border-color: rgba(255,255,255,0.6);
}

.x-search-btn {
    width: 100%;
    padding: 16px 20px;
    background: white;
    color: #1da1f2;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.x-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Loading State */
.x-loading {
    text-align: center;
    padding: 60px 20px;
}

.x-loader {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #1da1f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.x-loading p {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

/* Results Section */
.x-results {
    display: none;
}

.x-results.show {
    display: block;
    animation: fadeIn 0.5s;
}

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

/* Summary Card */
.x-summary-card {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 25px rgba(29,161,242,0.3);
}

.x-summary-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.x-summary-card p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

/* Live Badge */
.x-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ff0000;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.x-live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Category Filter */
.x-category-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.x-filter-btn {
    padding: 10px 20px;
    background: #e1e8ed;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #14171a;
    cursor: pointer;
    transition: all 0.3s;
}

.x-filter-btn.active {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    color: white;
}

.x-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Trends Grid */
.x-trends-grid {
    display: grid;
    gap: 15px;
}

.x-trend-card {
    background: #f7f9f9;
    padding: 20px 25px;
    border-radius: 15px;
    transition: all 0.3s;
    cursor: pointer;
    border-left: 5px solid #1da1f2;
    position: relative;
}

.x-trend-card:hover {
    background: #e8f5fe;
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(29,161,242,0.2);
}

.x-trend-rank {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(29,161,242,0.3);
}

.x-trend-category {
    font-size: 12px;
    color: #657786;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

.x-trend-hashtag {
    font-size: 20px;
    font-weight: 700;
    color: #14171a;
    margin-bottom: 8px;
}

.x-trend-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.x-trend-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #657786;
    font-weight: 600;
}

.x-trend-stat span:first-child {
    font-size: 16px;
}

.x-trend-description {
    font-size: 14px;
    color: #536471;
    margin-top: 8px;
    line-height: 1.5;
}

/* Info Box */
.x-info-box {
    background: #fff8e1;
    border-left: 5px solid #ffc107;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

.x-info-box h4 {
    color: #f57c00;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.x-info-box ul {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.x-info-box li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.x-info-box li:last-child {
    margin-bottom: 0;
}

.x-info-box strong {
    color: #333;
}

/* SEO Content Section */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #333;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article ul,
.content-article ol {
    margin-bottom: 25px;
    padding-left: 30px;
    color: #666;
}

.content-article li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-article strong {
    color: #333;
    font-weight: 700;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

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

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-subtitle {
        font-size: 16px;
    }
    
    .tool-icon-large {
        font-size: 52px;
    }
    
    .tool-meta {
        font-size: 14px;
    }

    .content-article h2 {
        font-size: 26px;
    }
    
    .content-article h3 {
        font-size: 20px;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
    }

    .x-search-grid {
        grid-template-columns: 1fr;
    }
    
    .x-trend-rank {
        position: static;
        margin-bottom: 10px;
    }
    
    .x-trends-header h2 {
        font-size: 28px;
    }
    
    .x-search-section {
        padding: 25px 20px;
    }
    
    .x-trends-body {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .x-trend-card {
        padding: 15px 20px;
    }
    
    .x-trend-hashtag {
        font-size: 18px;
    }
    
    .x-filter-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .x-summary-card {
        padding: 25px 20px;
    }
}