/* Layout */

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    font-size: 28px;
}

.header-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.header-right {
    display: flex;
    gap: 8px;
}

.header-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.header-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Offline Banner */
.offline-banner {
    background: var(--warning);
    color: white;
    padding: 8px 16px;
    text-align: center;
    font-size: 0.85rem;
    display: none;
}

.offline-banner.show {
    display: block;
}

/* Daily Tip Banner */
.daily-tip-banner {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0e6cc;
}

.daily-tip-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.daily-tip-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.3;
}

.daily-tip-refresh {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.3s;
}

.daily-tip-refresh:hover {
    opacity: 1;
}

.daily-tip-refresh.spinning {
    animation: spin 0.5s ease;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Main Content */
.main {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 24px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.badge-premium {
    background: var(--premium);
    color: white;
}

.badge-breeder {
    background: var(--breeder);
    color: white;
}

/* Feature Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Dog Card */
.dog-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.1s;
}

.dog-card:active {
    transform: scale(0.98);
}

.dog-info {
    flex: 1;
}

.dog-card-actions {
    display: flex;
    gap: 8px;
}

.dog-edit-btn, .dog-delete-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.dog-edit-btn:hover, .dog-edit-btn:active {
    background: var(--background);
}

.dog-delete-btn:hover, .dog-delete-btn:active {
    background: rgba(192,57,43,0.15);
}

.dog-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    overflow: hidden;
}

.dog-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-info h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.dog-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.add-dog-btn {
    background: var(--card);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.add-dog-btn:hover {
    border-color: var(--primary);
}

.add-dog-btn .icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* Active Dog Banner */
.active-dog-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.active-dog-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.3);
}

.active-dog-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.active-dog-info {
    flex: 1;
    min-width: 0;
}

.active-dog-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-dog-sex {
    font-size: 1rem;
    opacity: 0.9;
}

.active-dog-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.active-dog-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.active-dog-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
    align-items: flex-end;
}

.active-dog-switch {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    cursor: pointer;
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
}

.active-dog-switch:hover {
    background: rgba(255,255,255,0.3);
}

/* No Dog State */
.no-dog-banner {
    background: var(--card);
    border: 2px dashed var(--accent);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
    cursor: pointer;
}

.no-dog-banner:hover {
    border-color: var(--primary);
    background: var(--background);
}

.no-dog-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.no-dog-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.no-dog-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}
