
/**
 * GroKarna Phase 2 - Frontend Styles
 * Version: 2.0.0
 */

/* ========================================
   GENERAL STYLES
======================================== */
.gk-phase2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========================================
   ACCOUNT DASHBOARD
======================================== */
.gk-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gk-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.gk-stat-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.gk-stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #2d6e3e;
    margin-bottom: 5px;
}

.gk-stat-label {
    font-size: 0.9em;
    color: #6b7280;
}

/* ========================================
   ADDRESS BOOK
======================================== */
.gk-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gk-address-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.gk-address-card.primary {
    border-color: #2d6e3e;
    background: #f0fdf4;
}

.gk-primary-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2d6e3e;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
}

.gk-address-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.gk-address-actions button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.gk-address-actions button.edit {
    background: #3b82f6;
    color: #fff;
}

.gk-address-actions button.delete {
    background: #ef4444;
    color: #fff;
}

.gk-address-actions button.set-primary {
    background: #10b981;
    color: #fff;
}

.gk-address-actions button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* ========================================
   BADGES
======================================== */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.badge-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.badge-card.earned {
    border-color: #10b981;
    background: #f0fdf4;
}

.badge-card.locked {
    opacity: 0.6;
    filter: grayscale(100%);
}

.badge-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.badge-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    margin-top: 10px;
}

.badge-status.earned {
    background: #10b981;
    color: #fff;
}

.badge-status.locked {
    background: #9ca3af;
    color: #fff;
}

/* ========================================
   SUPPORT TICKETS
======================================== */
.tickets-list {
    margin-top: 20px;
}

.ticket-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ticket-status {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
}

.ticket-status.open {
    background: #dbeafe;
    color: #1e40af;
}

.ticket-status.resolved {
    background: #d1fae5;
    color: #065f46;
}

.ticket-status.closed {
    background: #e5e7eb;
    color: #4b5563;
}

/* ========================================
   NOTIFICATIONS
======================================== */
.notifications-list {
    max-width: 800px;
    margin: 20px auto;
}

.notification-item {
    background: #fff;
    border-left: 4px solid #2d6e3e;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: start;
    gap: 15px;
    transition: all 0.2s;
}

.notification-item.unread {
    background: #f0fdf4;
    font-weight: 500;
}

.notification-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.notification-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 5px;
}

.notification-message {
    color: #6b7280;
    font-size: 0.9em;
}

.notification-time {
    color: #9ca3af;
    font-size: 0.8em;
    margin-top: 5px;
}

/* ========================================
   SECURITY & MFA
======================================== */
.mfa-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mfa-method-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.mfa-method-card:hover {
    border-color: #2d6e3e;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mfa-method-card.active {
    border-color: #10b981;
    background: #f0fdf4;
}

.mfa-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

/* ========================================
   FORMS
======================================== */
.gk-form-group {
    margin-bottom: 20px;
}

.gk-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.gk-form-group input[type="text"],
.gk-form-group input[type="email"],
.gk-form-group input[type="tel"],
.gk-form-group textarea,
.gk-form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.2s;
}

.gk-form-group input:focus,
.gk-form-group textarea:focus,
.gk-form-group select:focus {
    outline: none;
    border-color: #2d6e3e;
    box-shadow: 0 0 0 3px rgba(45, 110, 62, 0.1);
}

.gk-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.gk-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gk-btn-primary {
    background: #2d6e3e;
    color: #fff;
}

.gk-btn-primary:hover {
    background: #1f4d2b;
}

.gk-btn-secondary {
    background: #6b7280;
    color: #fff;
}

.gk-btn-secondary:hover {
    background: #4b5563;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .gk-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .gk-address-grid {
        grid-template-columns: 1fr;
    }
    
    .badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .mfa-methods {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   LOADING STATES
======================================== */
.gk-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #2d6e3e;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   ALERTS
======================================== */
.gk-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gk-alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.gk-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.gk-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.gk-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}
