/* Pet Rock Adoption Center Styles */
:root {
    --primary-color: #6B4C3A;
    --secondary-color: #8B7355;
    --accent-color: #FF6B6B;
    --success-color: #4ECDC4;
    --info-color: #45B7D1;
    --bg-color: #F5E6D3;
    --card-bg: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 12px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 30px 0;
    background: var(--card-bg);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.2em;
    color: var(--text-light);
    font-style: italic;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
}

/* Rock Grid */
.rock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.my-rocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Rock Cards */
.rock-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rock-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.rock-card.available::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    animation: sparkle 2s infinite;
}

.rock-card.adopted {
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
    border: 2px solid var(--success-color);
}

.rock-emoji {
    font-size: 4em;
    text-align: center;
    margin-bottom: 15px;
    animation: gentle-rock 3s ease-in-out infinite;
}

.rock-emoji-large {
    font-size: 6em;
    text-align: center;
    margin-bottom: 20px;
}

.rock-info {
    text-align: center;
    margin-bottom: 15px;
}

.rock-type {
    font-weight: bold;
    color: var(--primary-color);
    text-transform: capitalize;
    margin-bottom: 5px;
}

.rock-name {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.rock-personality {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 5px;
}

.rock-traits {
    font-size: 0.85em;
    color: var(--text-light);
    margin-bottom: 5px;
}

.suggested-name {
    font-size: 0.9em;
    color: var(--info-color);
    font-style: italic;
    margin-top: 10px;
}

.adoption-date,
.rock-age {
    font-size: 0.85em;
    color: var(--text-light);
    margin: 3px 0;
}

.personal-message {
    font-style: italic;
    color: var(--secondary-color);
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

/* Buttons */
.btn-adopt-me,
.btn-adopt,
.btn-cancel,
.btn-feed,
.btn-pet,
.btn-release {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-adopt-me,
.btn-adopt {
    background: linear-gradient(135deg, var(--accent-color), #ff8787);
    color: white;
    width: 100%;
}

.btn-adopt-me:hover,
.btn-adopt:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.btn-cancel {
    background: var(--text-light);
    color: white;
}

.btn-cancel:hover {
    background: #6C7A89;
}

.rock-actions {
    display: flex;
    gap: 5px;
    margin-top: 15px;
}

.btn-feed,
.btn-pet,
.btn-release {
    flex: 1;
    padding: 8px;
    font-size: 0.9em;
}

.btn-feed {
    background: #A8E6CF;
    color: #2E7D32;
}

.btn-pet {
    background: #FFD3B6;
    color: #D84315;
}

.btn-release {
    background: #FFAAA5;
    color: #B71C1C;
}

.btn-feed:hover,
.btn-pet:hover,
.btn-release:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Sections */
.adoption-section,
.my-rocks-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.adoption-section h2,
.my-rocks-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
}

.empty-message {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

/* Rock Care Tips */
.rock-care-tips {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.rock-care-tips h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.rock-care-tips ul {
    list-style: none;
}

.rock-care-tips li {
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 1.05em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.rock-preview {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.rock-details p {
    margin: 5px 0;
    color: var(--text-dark);
}

/* Form */
#adoptionForm label {
    display: block;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: bold;
}

#adoptionForm input,
#adoptionForm textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    margin-top: 5px;
    transition: border-color 0.3s;
}

#adoptionForm input:focus,
#adoptionForm textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

#adoptionForm textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons button {
    flex: 1;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 2000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: var(--success-color);
}

.notification-error {
    background: var(--accent-color);
}

.notification-info {
    background: var(--info-color);
}

/* Animations */
@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes gentle-rock {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.happy-bounce {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.wiggle {
    animation: wiggle 0.5s ease;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .rock-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .rock-actions {
        flex-direction: column;
    }
}