/**
 * Website Directory Core - Frontend Styles
 * Profesyonel & Kurumsal Tema (Lacivert - Gri)
 */

/* ===== Form Styles ===== */
.wdc-submit-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.wdc-submit-form {
    background: #ffffff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.wdc-submit-form .form-row {
    margin-bottom: 20px;
}

.wdc-submit-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e293b;
    font-size: 14px;
}

.wdc-submit-form input[type="text"],
.wdc-submit-form input[type="url"],
.wdc-submit-form input[type="email"],
.wdc-submit-form input[type="number"],
.wdc-submit-form select,
.wdc-submit-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.wdc-submit-form input:focus,
.wdc-submit-form select:focus,
.wdc-submit-form textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    background: #ffffff;
}

.wdc-submit-form small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.wdc-submit-form input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.wdc-submit-button,
.wdc-button {
    background: #1e3a8a;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    text-decoration: none;
    display: inline-block;
}

.wdc-submit-button:hover,
.wdc-button:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.wdc-submit-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.wdc-form-message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 6px;
    font-weight: 500;
}

.wdc-form-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.wdc-form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== Dashboard Styles ===== */
.wdc-dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.wdc-dashboard-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    height: fit-content;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.wdc-user-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.wdc-user-info img {
    border-radius: 50%;
    margin-bottom: 12px;
}

.wdc-user-info h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #0f172a;
}

.wdc-user-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.wdc-dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wdc-dashboard-nav a {
    padding: 10px 14px;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.wdc-dashboard-nav a:hover,
.wdc-dashboard-nav a.active {
    background: #eff6ff;
    color: #1e3a8a;
}

.wdc-dashboard-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.wdc-dashboard-content h2 {
    margin-top: 0;
    color: #0f172a;
    font-size: 22px;
    margin-bottom: 24px;
}

.wdc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.wdc-stat-card {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.wdc-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1;
    margin-bottom: 8px;
}

.wdc-stat-label {
    display: block;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.wdc-my-sites-table {
    width: 100%;
    border-collapse: collapse;
}

.wdc-my-sites-table th,
.wdc-my-sites-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.wdc-my-sites-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wdc-my-sites-table tr:hover {
    background: #f8fafc;
}

/* ===== Auth Forms ===== */
.wdc-auth-form {
    max-width: 420px;
    margin: 40px auto;
    background: #ffffff;
    padding: 36px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.wdc-auth-form h2 {
    margin-top: 0;
    color: #0f172a;
    text-align: center;
}

.wdc-auth-form input[type="text"],
.wdc-auth-form input[type="email"],
.wdc-auth-form input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
}

.wdc-notice {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    color: #78350f;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* ===== Rating ===== */
.wdc-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wdc-stars {
    color: #f59e0b;
    font-size: 16px;
}

.wdc-stars .star.empty {
    color: #cbd5e1;
}

.wdc-rating-text {
    font-size: 13px;
    color: #64748b;
}

.wdc-rating-stars {
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.wdc-rating-stars .star {
    font-size: 28px;
    color: #cbd5e1;
    transition: color 0.15s;
    cursor: pointer;
}

.wdc-rating-stars .star:hover,
.wdc-rating-stars .star.active {
    color: #f59e0b;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .wdc-dashboard {
        grid-template-columns: 1fr;
    }
    
    .wdc-dashboard-sidebar {
        order: 2;
    }
    
    .wdc-submit-form {
        padding: 20px;
    }
}
