/* Factory 6 My Account Dashboard Styles */

.f6-my-account-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.f6-dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.f6-dashboard-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

.f6-dashboard-subtitle {
    font-size: 1.1em;
    color: #666;
}

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

.f6-stat-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

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

.f6-stat-card.f6-stat-active {
    border-color: #4CAF50;
    background: #f1f8f4;
}

.f6-stat-card.f6-stat-inactive {
    border-color: #ccc;
    background: #f5f5f5;
}

.f6-stat-icon {
    font-size: 2.5em;
}

.f6-stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #ed008c;
}

.f6-stat-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Sections */
.f6-dashboard-section {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.f6-dashboard-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.8em;
    border-bottom: 2px solid #ed008c;
    padding-bottom: 10px;
}

/* Membership Card */
.f6-membership-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.f6-membership-section h2 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.f6-membership-card {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.f6-membership-card.inactive {
    opacity: 0.7;
}

.f6-membership-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.f6-membership-header h3 {
    margin: 0;
    font-size: 1.5em;
}

.f6-membership-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.f6-membership-status.active {
    background: #4CAF50;
}

.f6-membership-status.inactive {
    background: #f44336;
}

.f6-membership-details p {
    margin: 10px 0;
}

.f6-membership-actions {
    margin-top: 20px;
}

/* Expandable Section */
.f6-membership-expandable {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
}

.f6-expand-toggle {
    width: 100%;
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.f6-expand-toggle:hover {
    background: rgba(255,255,255,0.3);
}

.f6-expand-toggle.active .f6-toggle-icon {
    transform: rotate(180deg);
}

.f6-toggle-icon {
    transition: transform 0.3s;
    font-size: 0.8em;
}

.f6-expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    margin-top: 10px;
    color: #333;
}

.f6-expand-content.open {
    max-height: 2000px;
    padding: 20px;
    transition: max-height 0.5s ease-in;
}

/* Details Grid */
.f6-membership-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.f6-detail-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.f6-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.f6-detail-table tr {
    border-bottom: 1px solid #eee;
}

.f6-detail-table tr:last-child {
    border-bottom: none;
}

.f6-detail-table td {
    padding: 10px 5px;
    vertical-align: top;
}

.f6-detail-table td:first-child {
    width: 45%;
    color: #666;
}

.f6-detail-table td:last-child {
    font-weight: 500;
}

.f6-detail-table code {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    word-break: break-all;
}

/* Quick Links */
.f6-membership-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.f6-quick-links h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #667eea;
}

.f6-link-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.f6-action-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
}

.f6-action-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.f6-link-icon {
    font-size: 1.3em;
}

/* No Membership */
.f6-no-membership .f6-info-card {
    background: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.f6-no-membership ul {
    text-align: left;
    display: inline-block;
    margin: 20px 0;
}

.f6-no-membership ul li {
    margin: 10px 0;
    font-size: 1.1em;
}

/* Courses Grid */
.f6-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.f6-course-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.f6-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.f6-course-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}

.f6-course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.f6-course-content {
    padding: 20px;
}

.f6-course-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* Progress Bar */
.f6-progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin: 15px 0;
}

.f6-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ed008c, #ff69b4);
    transition: width 0.3s;
}

.f6-progress-text {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

/* Purchases List */
.f6-purchases-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.f6-purchase-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
}

.f6-purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.f6-purchase-header h3 {
    margin: 0;
    font-size: 1.4em;
}

.f6-purchase-date {
    color: #666;
    font-size: 0.9em;
}

/* Licenses Section */
.f6-licenses-section {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
}

.f6-licenses-section h4 {
    margin-top: 0;
    color: #333;
}

/* License Tabs */
.f6-license-tabs {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    border-bottom: 2px solid #f0f0f0;
}

.f6-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.f6-tab-btn:hover {
    color: #ed008c;
}

.f6-tab-btn.active {
    color: #ed008c;
    border-bottom-color: #ed008c;
}

.f6-tab-content {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* License Items */
.f6-license-item {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    border-left: 4px solid #ed008c;
    position: relative;
}

.f6-license-item.f6-license-revoked {
    background: #f9f9f9;
    border-left-color: #999;
    opacity: 0.85;
}

.f6-license-item + .f6-license-item {
    margin-top: 20px;
}

.f6-license-number {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #ed008c;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
}

.f6-license-number.revoked {
    background: #999;
}

.f6-license-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fee;
    color: #c00;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.f6-license-key {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.f6-license-revoked .f6-license-key code {
    text-decoration: line-through;
    opacity: 0.6;
}

.f6-license-key code {
    background: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 1.1em;
    font-family: 'Courier New', monospace;
    flex: 1;
    border: 1px solid #ddd;
}

.f6-copy-button {
    background: #ed008c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
    white-space: nowrap;
}

.f6-copy-button:hover {
    background: #c00070;
    transform: scale(1.05);
}

.f6-license-details {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #666;
    flex-wrap: wrap;
}

.f6-license-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.f6-license-details .f6-lifetime {
    color: #4CAF50;
    font-weight: bold;
}

/* Download Files */
.f6-download-files {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin: 15px 0;
}

.f6-download-files h4 {
    margin-top: 0;
    color: #333;
}

.f6-download-files ul {
    list-style: none;
    padding: 0;
}

.f6-download-files ul li {
    margin: 10px 0;
}

.f6-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #ed008c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.f6-download-link:hover {
    background: #c00070;
    color: white;
}

.f6-download-link:before {
    content: "⬇️";
}

/* Empty State */
.f6-empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.f6-empty-state p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Buttons */
.f6-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.f6-button-primary {
    background: #ed008c;
    color: white;
}

.f6-button-primary:hover {
    background: #c00070;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(237, 0, 140, 0.3);
}

.f6-button-secondary {
    background: #fff;
    color: #333;
    border: 2px solid #ed008c;
}

.f6-button-secondary:hover {
    background: #ed008c;
    color: white;
}

.f6-button-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.f6-link-button {
    display: inline-block;
    color: #ed008c;
    font-size: 1.1em;
    text-decoration: none;
    font-weight: bold;
}

.f6-link-button:hover {
    text-decoration: underline;
}

/* Account Actions */
.f6-account-actions .f6-action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .f6-dashboard-header h1 {
        font-size: 2em;
    }
    
    .f6-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .f6-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .f6-purchase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .f6-license-key {
        flex-direction: column;
    }
    
    .f6-license-key code {
        font-size: 0.9em;
    }
    
    .f6-membership-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
