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

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

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #fa709a;
}

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

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

/* Tool Header */
.tool-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 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;
    line-height: 1.2;
}

.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-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-separator {
    opacity: 0.5;
}

/* Tool Content */
.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

/* Hours Calculator Specific Styles */
.hours-calc-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.12);
    overflow: hidden;
}

.hours-calc-body {
    padding: 40px 30px;
}

.hours-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 12px;
}

.hours-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.hours-tab.active {
    background: white;
    color: #fa709a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hours-tab:hover {
    color: #fa709a;
}

.hours-content {
    display: none;
}

.hours-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.time-input-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.time-input-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 700;
}

.time-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.time-input-row:last-child {
    margin-bottom: 0;
}

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

.time-input-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.time-input-group input[type="time"],
.time-input-group input[type="date"],
.time-input-group input[type="number"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s;
}

.time-input-group input:focus {
    outline: none;
    border-color: #fa709a;
    box-shadow: 0 0 0 3px rgba(250,112,154,0.1);
}

.time-separator {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #fa709a;
    padding: 10px 0;
    margin: 0 0 20px 0;
}

.hours-calc-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.hours-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250,112,154,0.3);
}

.hours-result {
    margin-top: 35px;
    display: none;
}

.hours-result.show {
    display: block;
    animation: slideUp 0.5s;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hours-main-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    color: white;
    margin-bottom: 25px;
}

.hours-main-result h3 {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.95;
    font-weight: 500;
}

.hours-big-number {
    font-size: 56px;
    font-weight: 800;
    margin: 10px 0;
    line-height: 1;
}

.hours-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 10px;
}

.hours-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.hours-breakdown-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    border-bottom: 4px solid #fa709a;
}

.hours-breakdown-card h4 {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.hours-breakdown-card p {
    font-size: 28px;
    font-weight: 700;
    color: #fa709a;
    margin: 0;
}

.hours-info-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
}

.hours-info-box h4 {
    color: #f57c00;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

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

.hours-info-box li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.quick-add-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.quick-add-btn {
    padding: 8px 16px;
    background: #e0e0e0;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-add-btn:hover {
    background: #fa709a;
    color: white;
    transform: translateY(-2px);
}

/* 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;
    color: #333;
}

.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: #fa709a;
}

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

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

/* 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;
    }
    
    .hours-calc-container {
        margin: 20px;
        border-radius: 20px;
    }
    
    .hours-calc-body {
        padding: 30px 20px;
    }
    
    .hours-tabs {
        flex-direction: column;
    }
    
    .time-input-section {
        padding: 25px 20px;
    }
    
    .time-input-row {
        grid-template-columns: 1fr;
    }
    
    .hours-big-number {
        font-size: 42px;
    }
    
    .hours-breakdown-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .content-article h2 {
        font-size: 26px;
    }
    
    .content-article h3 {
        font-size: 20px;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hours-breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .hours-breakdown-card p {
        font-size: 24px;
    }
}