/* Character Counter Tool Styles - Simple Version */

/* Reset and Base Styles */
.character-counter-container,
.word-counter-container {
    background-color: #f5f7fa;
    padding: 20px 0 40px;
    width: 100%;
    box-sizing: border-box;
}

.character-counter-wrapper,
.word-counter-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Breadcrumb Navigation */
.breadcrumb-container {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    padding: 12px 0;
    margin-bottom: 20px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #3498db;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.breadcrumb-link:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    color: #7f8c8d;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #bdc3c7;
    font-size: 0.8rem;
    padding: 0 2px;
}

/* Hero Section */
.tool-description-section {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    color: white;
    padding: 40px 0 30px;
    margin-bottom: 30px;
}

.tool-main-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.tool-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 0;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.4;
}

/* Start Counting CTA */
.start-counting-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 15px 0 25px 0;
    text-align: center;
}

.cta-icon {
    font-size: 1.8rem;
    color: #4cd964;
}

.cta-text {
    font-size: 1.4rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Tool Layout */
.tool-layout {
    display: flex;
    gap: 30px;
    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;
}

/* Input Section */
.input-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    width: 100%;
}

.input-section h2 {
    color: #3498db;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#characterCounterTextInput {
    width: 100%;
    min-height: 250px;
    padding: 18px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    transition: border 0.3s;
    line-height: 1.6;
    font-family: inherit;
    margin-bottom: 10px;
    box-sizing: border-box;
}

#characterCounterTextInput:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0 15px 0;
    padding: 8px 12px;
    background-color: #f0f9ff;
    border: 1px solid #b3e0ff;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #0066cc;
    line-height: 1.3;
}

.privacy-icon {
    font-size: 1rem;
}

/* Buttons */
.text-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.character-counter-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.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;
    box-sizing: border-box;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #ecf0f1;
    color: #34495e;
}

.btn-secondary:hover {
    background-color: #d5dbdb;
}

.btn-clear {
    background-color: #e74c3c;
    color: white;
}

.btn-clear:hover {
    background-color: #c0392b;
}

/* Statistics Section */
.results-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    border-left: 5px solid #3498db;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
}

/* Social Media Limits */
.social-media-limits {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.social-media-title {
    color: #e67e22;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.limit-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3498db;
}

.limit-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.limit-fill {
    height: 100%;
    background: #3498db;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Related Tools */
.related-tools-section {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tool-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    border-color: #3498db;
}

.tool-card-link {
    display: inline-block;
    padding: 12px 25px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 0.95rem;
    margin-top: auto;
}

.tool-card-link:hover {
    background: #2980b9;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    margin-top: 0px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 18px 0;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-question.active + .faq-answer {
    max-height: 500px;
}

/* Responsive Design */
@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;
    }
    
    .main-content-area {
        order: 1;
    }
    
    .tool-main-title {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
}

@media (max-width: 767px) {
    .tool-main-title {
        font-size: 1.8rem;
    }
    
    .tool-subtitle {
        font-size: 1rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
        padding: 10px 15px;
    }
    
    .input-section,
    .results-section,
    .related-tools-section,
    .faq-section {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .character-counter-buttons {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .limits-grid {
        grid-template-columns: 1fr;
    }
    
    #characterCounterTextInput {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-main-title {
        font-size: 1.6rem;
    }
}

/* Copy Button Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.copy-section-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-section-btn:hover {
    background-color: #2980b9;
}

.limit-header,
.seo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    position: relative;
}

.limit-header h4,
.seo-header h4 {
    margin: 0;
    flex-grow: 1;
}

.copy-limit-btn,
.copy-seo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #ecf0f1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.copy-limit-btn:hover,
.copy-seo-btn:hover {
    background-color: #3498db;
    color: white;
    transform: scale(1.1);
}

.copy-icon {
    font-size: 0.9rem;
}

/* Social media specific copy button colors */
.twitter-limit .copy-limit-btn:hover {
    background-color: #1da1f2;
}

.instagram-limit .copy-limit-btn:hover {
    background-color: #e4405f;
}

.facebook-limit .copy-limit-btn:hover {
    background-color: #1877f2;
}

.linkedin-limit .copy-limit-btn:hover {
    background-color: #0077b5;
}

/* SEO specific copy button colors */
.seo-card:nth-child(1) .copy-seo-btn:hover {
    background-color: #e74c3c;
}

.seo-card:nth-child(2) .copy-seo-btn:hover {
    background-color: #2ecc71;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .copy-section-btn {
        align-self: flex-start;
    }
    
    .limit-header,
    .seo-header {
        gap: 8px;
    }
    
    .copy-limit-btn,
    .copy-seo-btn {
        width: 28px;
        height: 28px;
    }
}