/* Tools Page Styles - Whooho Digital Experience */

/* Hero Section */
.tools-hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tools-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255, 199, 0, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 138, 0, 0.03) 50%, transparent 52%);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 40px 40px, -40px 40px; }
}

.tools-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tools-hero .page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #FFC700;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-align: center;
}

.tools-payoff {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #FFC700;
    font-weight: 700;
}

.tools-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

/* Tools Section */
.tools-section {
    padding: 80px 20px;
    background: #f8f8f8;
}

/* Category Filters */
.tools-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.filter-btn {
    padding: 12px 24px;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #FFC700;
    color: #000;
    border-color: #000;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #FFC700;
    color: #000;
    border-color: #000;
    box-shadow: 0 4px 15px rgba(255, 199, 0, 0.3);
}

.tool-card.hidden {
    display: none !important;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tool Cards */
.tool-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    border: 2px solid #000;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #FFC700;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    border-color: #FFC700;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.tool-header i {
    font-size: 2rem;
    color: #FFC700;
}

.tool-header h3 {
    font-size: 1.4rem;
    color: #222;
    margin: 0;
    font-weight: 600;
}

.tool-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.tool-content {
    margin-top: 20px;
}

/* Color Palette */
.color-palette {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.color-box {
    flex: 1;
    min-width: 60px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-box::after {
    content: attr(data-color);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #666;
    font-family: monospace;
    white-space: nowrap;
}

/* Email Signature Generator */
.signature-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.signature-preview {
    margin-top: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.signature-preview h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1rem;
}

.signature-output {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

/* Invoice Generator */
.invoice-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.input-group input,
.input-group select,
.input-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.input-group textarea {
    min-height: 80px;
    resize: vertical;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #FFC700;
}

.invoice-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid #FFC700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
}

.summary-row.total {
    border-top: 2px solid #ddd;
    padding-top: 12px;
    margin-top: 12px;
    font-size: 1.2rem;
}

.summary-row span {
    color: #555;
}

.summary-row strong {
    color: #111;
    font-weight: 700;
}

/* Image Compressor */
.upload-area {
    border: 3px dashed #ddd;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #FFC700;
    background: #fff9e6;
}

.upload-area i {
    font-size: 3rem;
    color: #FFC700;
    margin-bottom: 15px;
    display: block;
}

.upload-area p {
    color: #666;
    margin: 0;
}

.compression-result {
    text-align: center;
}

.size-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.size-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.size-label {
    font-size: 0.85rem;
    color: #777;
    font-weight: 500;
}

.size-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.size-comparison i {
    color: #FFC700;
    font-size: 1.5rem;
}

/* Text Tools */
#textInput {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#textInput:focus {
    outline: none;
    border-color: #FFC700;
}

.text-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 20px 15px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.text-stats span {
    color: #666;
}

.text-stats strong {
    color: #222;
    font-weight: 600;
}

.text-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* QR Code */
.qr-output {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    margin: 20px 0;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
}

.qr-output canvas {
    border-radius: 8px;
}

.qr-download-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.qr-download-btns .tool-btn-small {
    flex: 1;
    min-width: 120px;
}

/* Buttons */
.tool-btn {
    width: 100%;
    padding: 14px 25px;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: none;
}

.tool-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tool-btn:active {
    transform: translateY(0);
}

.tool-btn-small {
    padding: 10px 18px;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tool-btn-small:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Tool CTA */
.tool-cta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.tool-cta p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.tool-cta a {
    color: #FFC700;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tool-cta a:hover {
    color: #FFC700;
}

/* CTA Section */
.tools-cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    text-align: center;
}

.tools-cta-section h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.tools-cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border: 2px solid #000;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: none;
}

.cta-button:hover {
    background: #000;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* PDF Converter */
.pdf-converter .upload-area {
    margin-bottom: 20px;
}

.pdf-preview h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Screenshot Tool */
.screenshot-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.screenshot-preview {
    text-align: center;
    margin-top: 20px;
}

.screenshot-preview canvas {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Video/Audio Converter */
.converter-area .upload-area {
    margin-bottom: 20px;
}

.converter-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.converter-loading {
    text-align: center;
    padding: 40px 20px;
}

/* Tax Calculator */
.tax-calculator {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tax-result {
    display: none;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid #FFC700;
}

.tax-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tax-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.tax-row span {
    color: #555;
}

.tax-row strong {
    color: #111;
    font-weight: 700;
}

.tax-row.highlight {
    color: #dc3545;
}

.tax-row.highlight strong {
    color: #dc3545;
}

.tax-row.total {
    border-top: 2px solid #ddd;
    padding-top: 12px;
    margin-top: 8px;
    font-size: 1.2rem;
}

.tax-row.total strong {
    color: #FFC700;
}

/* Responsive */
@media (min-width: 769px) {
    /* Hide horizontal filters on desktop (sidebar is visible) */
    .tools-filters {
        display: none;
    }
}

@media (max-width: 768px) {
    .tools-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tools-payoff {
        font-size: 2rem;
    }

    .tools-description {
        font-size: 1rem;
    }

    .tool-card {
        padding: 25px;
    }

    .tool-header h3 {
        font-size: 1.2rem;
    }

    .color-palette {
        gap: 8px;
    }

    .color-box {
        min-width: 50px;
        height: 70px;
    }

    .text-actions {
        flex-direction: column;
    }

    .tool-btn-small {
        width: 100%;
    }

    .tools-cta-section h2 {
        font-size: 1.8rem;
    }

    .tools-cta-section p {
        font-size: 1rem;
    }

    .size-comparison {
        flex-direction: column;
        gap: 10px;
    }

    .size-comparison i {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .tools-hero .hero-content {
        padding: 100px 15px 40px;
    }

    .tools-payoff {
        font-size: 1.6rem;
    }

    .password-options {
        flex-direction: column;
        gap: 10px;
    }

    .roi-value,
    .roi-profit {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .roi-number,
    .profit-number {
        font-size: 1.5rem;
    }
}

/* Success/Copy Feedback */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.copy-success {
    animation: pulse 0.3s ease;
}

/* Excel Tools Specific Styles */
.clean-options,
.format-options {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.clean-option,
.format-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clean-option input[type="checkbox"],
.format-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #FFC700;
}

.clean-option label,
.format-option label {
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
}

.case-type-selector {
    margin-left: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-type-selector select {
    padding: 8px 12px;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.case-type-selector select:focus {
    outline: none;
    border-color: #FFC700;
}

.tool-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tool-btn-group .tool-btn {
    flex: 1;
    min-width: 140px;
}

#mergerFileList {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    font-size: 0.9rem;
}

#mergerFileList li {
    padding: 5px 0;
    color: #333;
}

.file-name-display {
    font-weight: 600;
    color: #000;
    margin: 10px 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .tool-btn-group {
        flex-direction: column;
    }
    
    .tool-btn-group .tool-btn {
        min-width: 100%;
    }
    
    .case-type-selector {
        margin-left: 0;
        margin-top: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
}

.tool-btn.success {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.tool-btn.success i::before {
    content: '\f00c';
}
