/* ============================================================
   Favorite button
============================================================ */

.rc-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    backdrop-filter: blur(4px);
}

.rc-favorite-btn:hover {
    background: #fff;
    color: #e53935;
    transform: scale(1.1);
}

.rc-favorite-btn.active {
    background: #e53935;
    color: #fff;
}

.rc-favorite-btn.rc-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Ensure project-thumb is position relative for button placement */
.project-item .project-thumb {
    position: relative;
}

/* ============================================================
   Favorite button — detail page variant
============================================================ */

.project-favorite-wrap {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 999;
}

.rc-favorite-btn--detail {
    position: static;
    width: auto;
    height: auto;
    border-radius: 50px;
    padding: 10px 20px;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.rc-favorite-btn--detail .rc-favorite-label {
    display: inline;
}

.rc-favorite-btn--detail.active {
    background: #e53935;
    color: #fff;
}

/* ============================================================
   Login / Register forms
============================================================ */

#loginform,
#rc-register-form {
    max-width: 420px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

#loginform p,
.rc-form-group {
    margin-bottom: 20px;
}

#loginform label,
.rc-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

#loginform input[type="text"],
#loginform input[type="password"],
.rc-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

#loginform input:focus,
.rc-form-group input:focus {
    outline: none;
    border-color: #c8a96e;
}

#loginform input[type="submit"],
.rc-btn {
    width: 100%;
    padding: 12px;
    background: #c8a96e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#loginform input[type="submit"]:hover,
.rc-btn:hover {
    background: #b8944f;
}

.rc-auth-links {
    text-align: center;
    margin-top: 16px;
    font-size: 0.875rem;
    color: #666;
}

.rc-auth-links a {
    color: #c8a96e;
    text-decoration: none;
}

.rc-auth-notice {
    text-align: center;
    padding: 40px;
    color: #666;
}

.rc-form-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.rc-form-message--success {
    background: #e8f5e9;
    color: #2e7d32;
}

.rc-form-message--error {
    background: #fdecea;
    color: #c62828;
}

/* ============================================================
   Favorites page
============================================================ */

.favorites-empty {
    text-align: center;
    padding: 60px 0;
    font-size: 1.125rem;
    color: #888;
}

.favorites-grid .project-item {
    margin-bottom: 30px;
}
