/* Tools Page Styles */

/* Basic Layout */
.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

/* Tools Page Header */
.tools-page-header.section-padding {
    padding: 10rem 0 5rem;
}

.tools-page-header {
    background: linear-gradient(135deg, #111d31 0%, #273039 100%);
    text-align: center;
    position: relative;
}

.tools-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(155, 89, 182, 0.5);
    z-index: 1;
}

.tools-page-header .container {
    position: relative;
    z-index: 2;
}

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

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Tools Search Section */
.tools-search-section {
    margin-top: 2rem;
    position: relative;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
}

/* Filter Section */
.tools-filter-section {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: flex-end;
}

.filter-dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin: 0;
    text-align: center;
}

.filter-dropdown {
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 35px;
    min-width: 150px;
    max-width: 200px;
    height: 36px;
    line-height: 1;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #bdd653;
    box-shadow: 0 0 0 3px rgba(189, 214, 83, 0.1);
}

.clear-filters-btn {
    background: #273039;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 36px;
    line-height: 1;
    margin-top: 24px;
}

.clear-filters-btn:hover {
    background: #1a2329;
    transform: translateY(-1px);
}

.filter-results {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-results p {
    margin: 0;
    color: #666;
    font-weight: 500;
}

/* Featured Tools Section */
.featured-tools-section {
    background: white;
}

.featured-tools-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.featured-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Featured Tool Card */
.featured-tool-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.featured-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #bdd653, #a8c442);
}

.featured-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #bdd653;
}

.featured-tool-card .tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #bdd653 0%, #a8c442 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #273039;
    font-size: 2rem;
}

.featured-tool-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #273039;
    margin-bottom: 1rem;
}

.featured-tool-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Tool Stats */
.tool-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat i {
    color: #bdd653;
    font-size: 1.2rem;
}

.stat-number {
    font-weight: 700;
    color: #273039;
    font-size: 1.1rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* All Tools Section */
.all-tools-section {
    background: #f8f9fa;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Tool Card */
.tool-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #bdd653;
}

/* Tool Header */
.tool-header {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.tool-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tool-icon-placeholder {
    color: #bdd653;
    font-size: 3rem;
}

.tool-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(189, 214, 83, 0.9);
    color: #273039;
    padding: 4px 12px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tool Content */
.tool-content {
    padding: 1.5rem;
}

.tool-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.tool-time,
.tool-complexity {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tool-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #273039;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.tool-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Tool Features */
.tool-features {
    margin-bottom: 1.5rem;
}

.tool-features h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #273039;
    margin: 0 0 0.5rem 0;
}

.tool-features ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #666;
    font-size: 0.9rem;
}

.tool-features li {
    margin-bottom: 0.25rem;
}

/* Tool Tags */
.tool-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tool-category-tag {
    background: rgba(189, 214, 83, 0.1);
    color: #273039;
    padding: 4px 10px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(189, 214, 83, 0.3);
}

/* Tool Actions */
.tool-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: #bdd653;
    color: #273039;
}

.btn-primary:hover {
    background: #a8c442;
    color: #273039;
}

.btn-secondary {
    background: #273039;
    color: white;
}

.btn-secondary:hover {
    background: #1a2329;
    color: white;
}

.btn-tertiary {
    background: #6c757d;
    color: white;
}

.btn-tertiary:hover {
    background: #5a6268;
    color: white;
}

/* Tool Modal */
.tool-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.tool-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80%;
    margin: 5% auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tool-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tool-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.tool-modal-header {
    background: linear-gradient(135deg, #273039 0%, #1a2329 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.tool-modal-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

.tool-modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.tool-modal-body {
    width: 100%;
    height: calc(100% - 120px);
    padding: 2rem;
    overflow-y: auto;
}

/* Tool Interface Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #273039;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #bdd653;
    box-shadow: 0 0 0 3px rgba(189, 214, 83, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Result Section */
.result-section {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.result-section.success {
    background: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
}

.result-section.error {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

.result-section.loading {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    text-align: center;
}

.result-section h4 {
    margin: 0 0 1rem 0;
    color: #273039;
}

/* Score Items */
.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.score-label {
    font-weight: 600;
    color: #273039;
}

.score-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.score-value.good {
    color: #2ecc71;
}

.score-value.warning {
    color: #f39c12;
}

.score-value.bad {
    color: #e74c3c;
}

/* Quick Calculators Section */
.quick-calculators-section {
    background: white;
}

.quick-calculators-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.quick-calc-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.quick-calc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #bdd653;
}

.calc-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #bdd653 0%, #a8c442 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #273039;
    font-size: 1.8rem;
}

.quick-calc-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #273039;
    margin-bottom: 1rem;
}

.quick-calc-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* No Tools Message */
.no-tools-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-tools-message p {
    font-size: 1.1rem;
    margin: 0;
}

/* Tools CTA Section */
.tools-cta-section {
    background: #f8f9fa;
}

.tools-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Placeholder Styles */
.tool-placeholder,
.calc-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.tool-placeholder i,
.calc-placeholder i {
    font-size: 4rem;
    color: #bdd653;
    margin-bottom: 1rem;
}

.tool-placeholder h3,
.calc-placeholder h3 {
    color: #273039;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .filter-dropdowns {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .filter-dropdown-group {
        width: 100%;
        max-width: 300px;
    }
    
    .filter-dropdown {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .search-input {
        padding: 12px 45px 12px 15px;
        font-size: 1rem;
    }
    
    .search-icon {
        right: 15px;
        font-size: 1.1rem;
    }
    
    .featured-tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-content {
        padding: 1.25rem;
    }
    
    .tool-title {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .tool-actions {
        flex-direction: column;
    }
    
    .quick-calculators-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-modal-content {
        width: 95%;
        height: 70%;
        margin: 10% auto;
    }
    
    .tool-modal-header {
        padding: 1.5rem;
    }
    
    .tool-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .tool-modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .tool-content {
        padding: 1rem;
    }
    
    .tool-title {
        font-size: 1.1rem;
    }
    
    .tool-excerpt {
        font-size: 0.9rem;
    }
    
    .filter-dropdown {
        font-size: 0.9rem;
        padding: 6px 12px;
        height: 32px;
    }
    
    .clear-filters-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
        height: 32px;
    }
    
    .tool-modal-content {
        width: 98%;
        height: 60%;
        margin: 15% auto;
    }
    
    .tool-modal-header {
        padding: 1rem;
    }
    
    .tool-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .tool-modal-body {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}
