/**
 * Tools Page Styles - Tukang Cikarang
 * Professional document generators for contractors
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 1000px;
    width: 100%;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.header-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
}

.header-logo i {
    font-size: 2.5rem;
    color: white;
}

.header h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Tool Card */
.tool-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 35px 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: transform 0.4s ease;
    transform: scaleX(0);
}

.tool-card.invoice::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.tool-card.quotation::before {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

/* Tool Icon */
.tool-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(-5deg);
}

.tool-icon.invoice {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.tool-icon.quotation {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.tool-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.tool-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Feature Tags */
.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Tool Action */
.tool-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.tool-card.invoice .tool-action {
    color: #10b981;
}

.tool-card.quotation .tool-action {
    color: #3b82f6;
}

.tool-action i {
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-action i {
    transform: translateX(5px);
}

/* Back Link */
.back-link {
    text-align: center;
    margin-top: 40px;
}

.back-link a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-link a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .brand {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .tools-grid {
        gap: 20px;
    }

    .tool-card {
        padding: 25px 20px;
    }

    .tool-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .tool-card h2 {
        font-size: 1.2rem;
    }

    .header {
        margin-bottom: 35px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .header-logo {
        width: 60px;
        height: 60px;
    }

    .header-logo i {
        font-size: 1.8rem;
    }

    .tool-features {
        gap: 6px;
    }

    .feature-tag {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}