/* TTD License Manager - Frontend Styles */
/* Designed to match The Tech Desk theme */

/* Plans Grid */
.ttd-lm-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.ttd-lm-plan {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ttd-lm-plan:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 231, 1, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ttd-lm-plan-popular {
    border-color: #ffe701;
    background: linear-gradient(135deg, rgba(255, 231, 1, 0.05) 0%, #141414 100%);
    transform: scale(1.05);
}

.ttd-lm-plan-popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.ttd-lm-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffe701;
    color: #0a0a0a;
    padding: 4px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Plan Header */
.ttd-lm-plan-header {
    margin-bottom: 28px;
}

.ttd-lm-plan-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.ttd-lm-plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ttd-lm-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

.ttd-lm-period {
    color: #737373;
    font-size: 0.9rem;
}

/* Plan Features */
.ttd-lm-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.ttd-lm-plan-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #a3a3a3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ttd-lm-plan-features li i {
    color: #ffe701;
    font-size: 0.75rem;
    min-width: 16px;
}

/* Plan Footer */
.ttd-lm-plan-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ttd-lm-plan-meta span {
    font-size: 0.8rem;
    color: #525252;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ttd-lm-plan-meta span i {
    color: #ffe701;
}

.ttd-lm-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #525252;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    width: 100%;
}

.ttd-lm-plan-btn:hover {
    border-color: #ffe701;
    color: #ffe701;
    transform: translateY(-2px);
}

.ttd-lm-plan-btn-primary {
    background: #ffe701;
    color: #0a0a0a;
    border-color: #ffe701;
}

.ttd-lm-plan-btn-primary:hover {
    background: #e6cf00;
    border-color: #e6cf00;
    color: #0a0a0a;
    box-shadow: 0 8px 25px rgba(255, 231, 1, 0.3);
}

/* License Check Form */
.ttd-lm-check-form {
    max-width: 600px;
    margin: 40px auto;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
}

.ttd-lm-check-form h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.ttd-lm-check-input {
    display: flex;
    gap: 12px;
}

.ttd-lm-check-input input {
    flex: 1;
    padding: 14px 18px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
}

.ttd-lm-check-input input:focus {
    border-color: #ffe701;
    box-shadow: 0 0 0 3px rgba(255, 231, 1, 0.1);
}

.ttd-lm-check-btn {
    padding: 14px 28px;
    background: #ffe701;
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ttd-lm-check-btn:hover {
    background: #e6cf00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 231, 1, 0.3);
}

/* Check Results */
.ttd-lm-check-result {
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ttd-lm-check-result h4 {
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ttd-lm-check-result p {
    color: #a3a3a3;
    margin: 4px 0;
    font-size: 0.9rem;
}

.ttd-lm-check-active {
    background: rgba(0, 163, 42, 0.1);
    border-color: rgba(0, 163, 42, 0.3);
}

.ttd-lm-check-expired {
    background: rgba(219, 166, 23, 0.1);
    border-color: rgba(219, 166, 23, 0.3);
}

.ttd-lm-check-revoked,
.ttd-lm-check-invalid {
    background: rgba(214, 54, 56, 0.1);
    border-color: rgba(214, 54, 56, 0.3);
}

.ttd-lm-check-invalid p {
    color: #f8d7da;
}

/* Frontend badges (reuse admin badge styles) */
.ttd-lm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ttd-lm-badge-active { background: rgba(0, 163, 42, 0.2); color: #4ade80; }
.ttd-lm-badge-expired { background: rgba(219, 166, 23, 0.2); color: #facc15; }
.ttd-lm-badge-revoked { background: rgba(214, 54, 56, 0.2); color: #f87171; }

/* Responsive */
@media (max-width: 1024px) {
    .ttd-lm-plans {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .ttd-lm-plan-popular {
        transform: none;
    }

    .ttd-lm-plan-popular:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 600px) {
    .ttd-lm-check-input {
        flex-direction: column;
    }

    .ttd-lm-plan {
        padding: 28px;
    }

    .ttd-lm-check-form {
        padding: 28px;
    }
}
