/* =========================================
   TEXT CASE CONVERTER
   Uses the current SmartMyTools common
   header/footer and calculator-page layout.
========================================= */

/* Page */
.calculator-page {
    min-height: 100vh;
    background: #f5f7fb;
    padding: 0 0 60px;
}

.calculator-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 18px 0;
    font-size: 14px;
    color: #4b5563;
}

.breadcrumb a {
    color: #0f3b66;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 4px;
}

/* Top Advertisement */
.top-ad {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #718096;
    margin-bottom: 40px;
}

/* Main Layout */
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 35px;
    align-items: start;
}

.page-main-content {
    min-width: 0;
}

/* Sidebar Ads */
.ad-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;

    position: sticky;
    top: 20px;

    height: max-content;
}

.ad-placeholder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #718096;
    background: transparent;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 35px;
}

.tool-header h1 {
    color: #2f3e52;
    font-size: 42px;
    margin: 0 0 12px;
}

.tool-header p {
    color: #526070;
    font-size: 18px;
    margin: 0;
}

/* Main Tool */
.text-case-tool {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.text-input-card {
    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.text-input-card label {
    display: block;
    color: #2f3e52;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.text-input-card textarea {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    color: #2f3e52;
    resize: vertical;
    outline: none;
}

.text-input-card textarea:focus {
    border-color: #0f3b66;
}

.text-input-card textarea::placeholder {
    color: #8a96a3;
}

/* Case Options */
.case-options {
    margin-top: 35px;
}

.case-options h2 {
    text-align: center;
    color: #2f3e52;
    font-size: 30px;
    margin: 0 0 25px;
}

.case-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.case-btn {
    border: none;
    background: #0f3b66;
    color: #ffffff;
    padding: 11px 16px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.case-btn:hover {
    background: #092c4d;
}

/* Tool Actions */
.tool-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.tool-action-btn {
    border: 1px solid #d9e0e7;
    background: #ffffff;
    color: #123f6d;
    border-radius: 6px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-action-btn:hover {
    background: #0f3b66;
    color: #ffffff;
    border-color: #0f3b66;
}

.tool-action-btn i {
    margin-right: 5px;
}

.tool-action-btn.clear-btn {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
}

.tool-action-btn.clear-btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* How It Works */
.tool-info {
    margin-top: 60px;
}

.tool-info h2 {
    text-align: center;
    font-size: 30px;
    color: #2f3e52;
    margin-bottom: 35px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.step {
    background: #ffffff;
    padding: 30px 25px;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    text-align: center;
}

.step > span {
    width: 42px;
    height: 42px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f3b66;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
}

.step h3 {
    color: #2f3e52;
    font-size: 18px;
    margin-bottom: 10px;
}

.step p {
    color: #667085;
    line-height: 1.6;
}

/* About */
.about-section {
    margin-top: 60px;
    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    padding: 40px;
}

.content-container h2 {
    color: #2f3e52;
    font-size: 30px;
    margin-bottom: 20px;
}

.content-container p {
    color: #526070;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.content-container p:last-child {
    margin-bottom: 0;
}

/* FAQ */
.faq-section {
    margin-top: 35px;
    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    padding: 40px;
}

.faq-section h2 {
    color: #2f3e52;
    font-size: 30px;
    margin-bottom: 25px;
}

.faq-item {
    border-bottom: 1px solid #d9e0e7;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border: none;
    background: transparent;
    color: #2f3e52;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-question i {
    color: #2563eb;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 0 18px;
}

.faq-answer p {
    margin: 0;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Disclaimer */
.disclaimer-section {
    max-width: 1100px;
    margin: 35px auto 0;
    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    padding: 40px;
}

.disclaimer-section h2 {
    color: #2f3e52;
    font-size: 30px;
    margin: 0 0 20px;
}

.disclaimer-section p {
    color: #526070;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 15px;
}

.disclaimer-section p:last-child {
    margin-bottom: 0;
}

/* Bottom Sticky Ad */
.bottom-sticky-ad {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(970px, calc(100% - 40px));
    min-height: 90px;
    z-index: 9998;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #d9e0e7;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: #eef1f5;
    color: #94a3b8;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1000px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .ad-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {

    .calculator-page .container {
        padding: 0 16px;
    }

    .top-ad {
        height: 80px;
        margin-bottom: 30px;
    }

    .tool-header h1 {
        font-size: 32px;
    }

    .tool-header p {
        font-size: 16px;
    }

    .text-input-card {
        padding: 25px 20px;
    }

    .case-options h2,
    .tool-info h2,
    .content-container h2,
    .faq-section h2,
    .disclaimer-section h2 {
        font-size: 26px;
    }

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

    .about-section,
    .faq-section,
    .disclaimer-section {
        padding: 25px 20px;
    }

    .ad-sidebar {
        display: none !important;
    }

    .bottom-sticky-ad {
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        min-height: 60px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-top: 1px solid #d9e0e7;
        z-index: 9999;
    }
}

@media (max-width: 600px) {

    .tool-header h1 {
        font-size: 28px;
    }

    .breadcrumb {
        font-size: 13px;
    }

    .case-buttons {
        gap: 8px;
    }

    .case-btn {
        font-size: 13px;
        padding: 10px 12px;
    }

    .tool-actions {
        gap: 8px;
    }

    .tool-action-btn {
        font-size: 13px;
        padding: 9px 12px;
    }
}

/* =========================================
   FOOTER SPACE FOR BOTTOM AD
========================================= */

.site-footer {
    padding-bottom: 120px;
}
/* =========================================
   Show Share SmartMyTools
========================================= */

#share-container {
    display: block;
}
/* =========================================
   Share SmartMyTools - Button Colors
========================================= */

#share-container .share-btn.facebook {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

#share-container .share-btn.whatsapp {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

#share-container .share-btn.twitter {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

#share-container .share-btn.linkedin {
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
}

#share-container .share-btn.copy-link {
    background: #6f42c1;
    color: #ffffff;
    border-color: #6f42c1;
}

/* Hover effect */
#share-container .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* =========================================
   TOAST NOTIFICATION
========================================= */

.toast {
    position: fixed;
    left: 50%;
    bottom: 100px;
    transform: translateX(-50%);
    
    background: #1f2937;
    color: #ffffff;
    
    padding: 12px 20px;
    border-radius: 8px;
    
    font-size: 14px;
    font-weight: 500;
    
    opacity: 0;
    visibility: hidden;
    
    transition: opacity 0.3s ease, visibility 0.3s ease;
    
    z-index: 100000;
    
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {

    .toast {
        bottom: 80px;
        width: max-content;
        max-width: calc(100% - 40px);
        text-align: center;
    }

}