/* Landing Page Wrapper */
.landing-wrap {
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
}

/* Hero Section */
.tools-hero {
    text-align: center;
    padding: 40px 20px;
    margin: 20px 0;
}

.tools-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.tools-hero p {
    font-size: 18px;
    color: #696969;
    max-width: 600px;
    margin: 0 auto;
}

/* Tools Section */
.tools-section {
    padding: 20px;
    margin: 20px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Tool Cards */
.tool-card {
    background: #fff;
    border-radius: 10px;
    padding: 45px 25px 35px 25px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 0 27px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #50ca59 0%, #3da449 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.tool-icon i {
    font-size: 32px;
    color: #fff;
}

.tool-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 15px;
    color: #696969;
    line-height: 1.6;
    margin: 0;
}

/* Tool Badge (Login Required) */
.tool-badge {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #50ca59 0%, #3da449 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(80, 202, 89, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    white-space: nowrap;
}

.tool-badge i {
    font-size: 13px;
}

/* Footer */
.footer-section {
    text-align: center;
    padding: 40px 20px;
    color: #a4a4a4;
    font-size: 14px;
    margin-top: 40px;
}

.footer-section a {
    color: #696969;
    text-decoration: none;
    margin: 0 10px;
}

.footer-section a:hover {
    color: #50ca59;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .landing-wrap {
        padding: 10px;
    }

    .tools-hero {
        padding: 30px 15px;
    }

    .tools-hero h1 {
        font-size: 32px;
    }

    .tools-hero p {
        font-size: 16px;
    }

    .tools-section {
        padding: 10px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-card {
        padding: 45px 20px 30px 20px;
    }

    .tool-icon {
        width: 60px;
        height: 60px;
        margin-top: 10px;
    }

    .tool-icon i {
        font-size: 28px;
    }

    .tool-card h3 {
        font-size: 18px;
    }

    .tool-card p {
        font-size: 14px;
    }

    .tool-badge {
        top: 12px;
        font-size: 10px;
        padding: 5px 12px;
    }

    .tool-badge i {
        font-size: 12px;
    }

    .footer-section {
        padding: 30px 10px;
    }

    .footer-section a {
        display: inline-block;
        margin: 5px 10px;
    }
}

/* Tablet (between mobile and desktop) */
@media (min-width: 769px) and (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Individual Tool Page Styles
   ============================================ */

/* Tool Container - Main content card */
.tool-container {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 0 27px rgba(0, 0, 0, 0.05);
    width: 800px;
    max-width: calc(100% - 40px);
    margin: 20px auto;
}

.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

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

/* Form Elements */
.tool-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.tool-input,
.tool-textarea,
.tool-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.tool-input:focus,
.tool-textarea:focus,
.tool-select:focus {
    outline: none;
    border-color: #50ca59;
    box-shadow: 0 0 0 3px rgba(80, 202, 89, 0.1);
}

.tool-textarea {
    resize: vertical;
    min-height: 120px;
}

.tool-input[readonly],
.tool-textarea[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Buttons */
.tool-button {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 5px;
    background: linear-gradient(135deg, #50ca59 0%, #3da449 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.tool-button:hover {
    background: linear-gradient(135deg, #3da449 0%, #2d8838 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(80, 202, 89, 0.3);
}

.tool-button:active {
    transform: translateY(0);
}

.tool-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.tool-button-secondary {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: #696969;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-button-secondary:hover {
    border-color: #50ca59;
    color: #50ca59;
    background: rgba(80, 202, 89, 0.02);
}

.tool-button-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.tool-button-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

/* Button Groups */
.tool-button-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* Form Groups */
.tool-form-group {
    margin-bottom: 20px;
}

.tool-form-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tool-form-row .tool-select,
.tool-form-row .tool-input {
    flex: 1;
}

/* Result Display */
.tool-result {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #50ca59;
}

.tool-result h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.tool-result p {
    font-size: 15px;
    color: #555;
    margin: 8px 0;
}

.tool-result code {
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #333;
    display: inline-block;
    margin-top: 5px;
}

/* World Timezones Table */
.tool-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.tool-table th,
.tool-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tool-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #50ca59;
}

.tool-table tr:hover {
    background: #f8f9fa;
}

.tool-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

/* Focus Timer Specific */
.timer-display {
    font-size: 64px;
    font-weight: 700;
    color: #50ca59;
    text-align: center;
    margin: 30px 0;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

/* Color Picker Specific */
.color-preview {
    width: 100%;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.color-input-wrapper input[type="color"] {
    width: 80px;
    height: 50px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

/* QR Code Generator Specific */
.qr-container {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 5px;
    margin: 20px 0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-container canvas {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    background: #fff;
}

.qr-placeholder {
    color: #999;
    font-size: 15px;
}

/* Mobile Responsiveness for Tool Pages */
@media (max-width: 768px) {
    .tool-container {
        width: calc(100% - 20px);
        max-width: 100%;
        padding: 25px 20px;
        margin: 10px;
    }

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

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

    .tool-button,
    .tool-button-secondary {
        width: 100%;
        padding: 14px 20px;
    }

    .tool-button-group {
        flex-direction: column;
    }

    .tool-button-group .tool-button,
    .tool-button-group .tool-button-secondary {
        width: 100%;
    }

    .tool-form-row {
        flex-direction: column;
    }

    .tool-form-row .tool-select,
    .tool-form-row .tool-input {
        width: 100%;
    }

    .timer-display {
        font-size: 48px;
    }

    .timer-controls {
        flex-direction: column;
    }

    .timer-controls .tool-button {
        width: 100%;
    }

    .color-input-wrapper {
        flex-direction: column;
    }

    .tool-table {
        font-size: 14px;
    }

    .tool-table th,
    .tool-table td {
        padding: 10px 8px;
    }
}

/* ============================================
   Sticky Footer for Individual Tool Pages Only
   (Not the tools index page)
   ============================================ */
body:has(.tool-container) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body:has(.tool-container) .landing-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Tool page SEO/about content */
.tool-about {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 0 27px rgba(0, 0, 0, 0.05);
    width: 800px;
    max-width: calc(100% - 40px);
    margin: 20px auto;
}

.tool-about h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.tool-about > p {
    font-size: 15px;
    color: #696969;
    line-height: 1.7;
    margin: 0 0 15px 0;
}

.tool-about .tool-faq h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 8px 0;
}

.tool-about .tool-faq p {
    font-size: 15px;
    color: #696969;
    line-height: 1.7;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .tool-about {
        width: calc(100% - 20px);
        max-width: 100%;
        padding: 25px 20px;
        margin: 10px;
    }
}
