/**
 * WordMac App Frontend Styles
 *
 * @package WordMacApp
 * @since 1.0.0
 */

/* Dashboard Container */
.wordmac-dashboard-container,
.wordmac-licenses-container,
.wordmac-usage-container,
.wordmac-billing-container,
.wordmac-support-container,
.wordmac-profile-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Dashboard Header */
.wordmac-dashboard-header {
    margin-bottom: 40px;
}

.wordmac-dashboard-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.wordmac-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

/* Stats Cards */
.wordmac-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.wordmac-stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: #f0f6fc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon .dashicons {
    font-size: 24px;
    color: #2271b1;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

/* Quick Actions */
.wordmac-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.wordmac-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: #fff;
    border: 2px solid #2271b1;
    border-radius: 8px;
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wordmac-action-button:hover {
    background: #2271b1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.2);
}

/* Licenses Grid */
.wordmac-licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.wordmac-license-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wordmac-license-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.license-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.license-tier-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.license-tier-badge.standard {
    background: #e3f2fd;
    color: #1976d2;
}

.license-tier-badge.seo {
    background: #f3e5f5;
    color: #7b1fa2;
}

.license-tier-badge.trends {
    background: #fff3e0;
    color: #f57c00;
}

.license-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.license-status-badge.active {
    background: #d4edda;
    color: #155724;
}

.license-status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.license-key-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.license-key {
    flex: 1;
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
}

.wordmac-copy-btn {
    background: #2271b1;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wordmac-copy-btn:hover {
    background: #135e96;
}

.license-tokens-info {
    margin: 16px 0;
}

.tokens-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tokens-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a32a, #00ba37);
    transition: width 0.3s ease;
}

.tokens-text {
    font-size: 13px;
    color: #6c757d;
}

.license-card-footer {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

/* Empty State */
.wordmac-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.empty-state-icon .dashicons {
    font-size: 64px;
    color: #ccc;
}

.wordmac-empty-state h2,
.wordmac-empty-state h3 {
    color: #6c757d;
    margin: 16px 0;
}

/* Forms */
.wordmac-form .form-group {
    margin-bottom: 20px;
}

.wordmac-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.wordmac-form input[type="text"],
.wordmac-form input[type="email"],
.wordmac-form input[type="password"],
.wordmac-form input[type="url"],
.wordmac-form select,
.wordmac-form textarea {
    width: 100%;
    max-width: 500px;
}

/* Notices */
.wordmac-notice {
    padding: 12px 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.wordmac-notice-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.wordmac-notice-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .wordmac-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .wordmac-licenses-grid {
        grid-template-columns: 1fr;
    }
    
    .wordmac-quick-actions {
        grid-template-columns: 1fr;
    }
}

