/* Pages - Login, Dashboard Index, Guild Page Specific Styles */

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--discord-blurple) 0%, var(--bg-primary) 100%);
}

.login-box {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
}

.login-box h1 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.login-box p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Dashboard Index - Guilds Grid */
.guilds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.guild-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.guild-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--border-hover);
}

.guild-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.guild-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.guild-icon-placeholder {
    width: 100%;
    height: 100%;
    background: var(--discord-blurple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #fff; /* Always white for contrast on blurple */
}

.guild-info {
    text-align: center;
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guild-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    word-break: break-word;
}

.guild-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: var(--border-color);
    font-weight: 500;
}

.guild-role.global-bot-master {
    background: rgba(88, 101, 242, 0.2);
    color: #5865F2;
    font-weight: 600;
}

.guild-role.owner {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    font-weight: 600;
}

.guild-role.bot-master {
    background: rgba(67, 181, 129, 0.2);
    color: #43B581;
    font-weight: 600;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

/* Guild Page - Header */
.guild-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.guild-icon-large {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
}

.guild-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guild-icon-placeholder-large {
    width: 100%;
    height: 100%;
    background: var(--discord-blurple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
}

.guild-details h2 {
    margin-bottom: 0.5rem;
}

.guild-details p {
    color: var(--text-secondary);
}

/* Modules Section */
.modules-section {
    margin-top: 2rem;
}

.section-description {
    color: var(--discord-light);
    margin-bottom: 2rem;
}

.modules-list {
    display: grid;
    gap: 1rem;
}

.module-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.module-header h4 {
    text-transform: capitalize;
}

.module-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.config-btn {
    margin-top: 0.5rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 400px;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0.5rem auto;
    line-height: 1.6;
}

.empty-state p:first-child {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Bot Masters Section */
.bot-masters-section {
    margin-top: 3rem;
}

.bot-masters-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.bot-master-item {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}

.bot-master-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bot-master-info strong {
    color: var(--text-primary);
}

.bot-master-info small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.add-bot-master-form {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.add-bot-master-form h4 {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: inline-block;
    margin-right: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-group input[type="radio"] {
    margin-right: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--discord-blurple);
}

