/* FishSpace Early 2000s Styling */

@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Impact&display=swap');

* {
    box-sizing: border-box;
}

.fishspace-body {
    margin: 0;
    padding: 0;
    background: linear-gradient(45deg, #001122, #003366, #004488);
    background-size: 400% 400%;
    animation: oceanWave 10s ease-in-out infinite;
    min-height: 100vh;
    font-family: 'Comic Neue', cursive;
    overflow-x: hidden;
}

@keyframes oceanWave {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.fishspace-app {
    min-height: 100vh;
    position: relative;
}

/* Floating Bubbles */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

.bubble:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.bubble:nth-child(2) {
    left: 50%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.bubble:nth-child(3) {
    left: 80%;
    animation-delay: 4s;
    animation-duration: 10s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Header Styling */
.fishspace-header {
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ffd23f);
    border-bottom: 5px solid #ff4757;
    padding: 10px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.fishspace-logo {
    text-align: center;
    position: relative;
}

.fishspace-logo h1 {
    font-family: 'Impact', sans-serif;
    font-size: 3rem;
    color: #fff;
    text-shadow: 3px 3px 0px #ff4757, 6px 6px 10px rgba(0,0,0,0.5);
    margin: 10px 0;
    transform: perspective(500px) rotateX(15deg);
}

.fishspace-nav {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.fishspace-nav button {
    background: linear-gradient(45deg, #70a1ff, #5352ed);
    color: white;
    border: 2px solid #3742fa;
    padding: 8px 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    font-family: 'Comic Neue', cursive;
    box-shadow: 2px 2px 0px #2f3542;
    transition: all 0.1s ease;
}

.fishspace-nav button:hover {
    background: linear-gradient(45deg, #5352ed, #3742fa);
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #2f3542;
}

.fishspace-nav button.active {
    background: linear-gradient(45deg, #ffa502, #ff6348);
    border-color: #ff4757;
}

.user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 15px;
    border: 2px solid #ff4757;
    font-weight: bold;
    color: #333;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ff4757;
}

/* Main Content */
.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Profile Page */
.profile-page {
    border: 3px solid #ff4757;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.profile-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.profile-pic-section {
    text-align: center;
}

.main-profile-pic {
    width: 128px;
    height: 128px;
    border: 5px solid #fff;
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
    display: block;
    margin: 0 auto 10px;
}

.mood-status {
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 15px;
    border: 2px solid #ff4757;
    font-weight: bold;
    font-size: 1.2rem;
}

.profile-info {
    flex: 1;
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ff4757;
}

.profile-info h2 {
    color: #ff4757;
    font-size: 2rem;
    margin: 0 0 10px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.status {
    font-size: 1.1rem;
    font-style: italic;
    color: #333;
    margin-bottom: 15px;
    padding: 10px;
    background: #ffd23f;
    border-radius: 5px;
    border: 2px dashed #ff6b35;
}

.profile-details p {
    margin: 8px 0;
    font-weight: bold;
    color: #333;
}

/* Customization */
.customize-section {
    text-align: center;
    margin: 20px 0;
}

.customize-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: 3px solid #ff4757;
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 20px;
    box-shadow: 3px 3px 0px #c44569;
    transition: all 0.1s ease;
}

.customize-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0px #c44569;
}

.profile-customizer {
    background: rgba(255,255,255,0.95);
    padding: 15px;
    border-radius: 10px;
    border: 3px solid #ff4757;
    margin: 15px 0;
}

.theme-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.theme-btn {
    padding: 10px 15px;
    border: 2px solid #333;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.1s ease;
}

.theme-btn:hover {
    transform: scale(1.05);
}

.theme-btn.reef {
    background: linear-gradient(45deg, #0ea5e9, #06b6d4);
    color: white;
}

.theme-btn.deep {
    background: linear-gradient(45deg, #1e1b4b, #312e81);
    color: white;
}

.theme-btn.kelp {
    background: linear-gradient(45deg, #166534, #15803d);
    color: white;
}

.theme-btn.tropical {
    background: linear-gradient(45deg, #f59e0b, #f97316);
    color: white;
}

/* About Section */
.about-section {
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ff4757;
    margin: 20px 0;
}

.about-section h3 {
    color: #ff4757;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Friends Grid */
.top-friends {
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ff4757;
    margin: 20px 0;
}

.top-friends h3 {
    color: #ff4757;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.friend-card {
    text-align: center;
    padding: 10px;
    background: #ffd23f;
    border: 2px solid #ff6b35;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.friend-card:hover {
    transform: scale(1.05);
    background: #ffda44;
}

.friend-pic {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #ff4757;
    display: block;
    margin: 0 auto 5px;
}

.friend-card span {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
}

/* Comments */
.comments-section {
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ff4757;
    margin: 20px 0;
}

.comments-section h3 {
    color: #ff4757;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.comment {
    background: #e8f4fd;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #70a1ff;
    margin: 10px 0;
}

/* Home Page */
.home-page {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-section {
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #ff4757;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

.welcome-section h2 {
    color: #ff4757;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.welcome-section p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}

.stats {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    flex-wrap: wrap;
}

.stats span {
    background: #ffd23f;
    padding: 10px 15px;
    border-radius: 20px;
    border: 2px solid #ff6b35;
    font-weight: bold;
    color: #333;
}

.activity-feed {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 10px;
    border: 3px solid #ff4757;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}

.activity-feed h3 {
    color: #ff4757;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #e8f4fd;
    border-radius: 8px;
    border: 2px solid #70a1ff;
    margin: 10px 0;
    align-items: center;
}

.activity-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #ff4757;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content strong {
    color: #ff4757;
    font-size: 1.1rem;
}

.activity-content p {
    margin: 5px 0;
    color: #333;
}

.activity-content span {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Browse Page */
.browse-page {
    max-width: 1000px;
    margin: 0 auto;
}

.browse-page h2 {
    color: #ff4757;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.search-section {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 10px;
    border: 3px solid #ff4757;
    margin-bottom: 20px;
    text-align: center;
}

.search-input {
    padding: 10px 15px;
    font-size: 1.1rem;
    border: 2px solid #70a1ff;
    border-radius: 20px;
    width: 300px;
    max-width: 100%;
    margin-right: 10px;
}

.search-btn {
    background: linear-gradient(45deg, #70a1ff, #5352ed);
    color: white;
    border: 2px solid #3742fa;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 0px #2f3542;
}

.search-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #2f3542;
}

.fish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.fish-card {
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 10px;
    border: 3px solid #ff4757;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}

.fish-card:hover {
    transform: translateY(-5px);
    box-shadow: 5px 8px 15px rgba(0,0,0,0.4);
}

.fish-card-pic {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid #ff4757;
    display: block;
    margin: 0 auto 15px;
}

.fish-card h4 {
    color: #ff4757;
    font-size: 1.3rem;
    margin: 10px 0;
}

.fish-card p {
    color: #666;
    font-weight: bold;
}

/* Messages Page */
.messages-page h2 {
    color: #ff4757;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.message-list {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    border: 3px solid #ff4757;
    padding: 20px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}

.message-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #e8f4fd;
    border-radius: 8px;
    border: 2px solid #70a1ff;
    margin: 15px 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.message-item:hover {
    background: #d4f1f4;
}

.message-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #ff4757;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-content strong {
    color: #ff4757;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.message-content p {
    color: #333;
    margin: 5px 0;
}

.message-content span {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Groups Page */
.groups-page h2 {
    color: #ff4757;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.my-groups, .discover-groups {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    border: 3px solid #ff4757;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}

.my-groups h3, .discover-groups h3 {
    color: #ff4757;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.group-item, .group-suggestion {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #e8f4fd;
    border-radius: 8px;
    border: 2px solid #70a1ff;
    margin: 15px 0;
    align-items: center;
}

.group-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #ff4757;
    flex-shrink: 0;
}

.group-info {
    flex: 1;
}

.group-info h4 {
    color: #ff4757;
    font-size: 1.2rem;
    margin: 0 0 5px 0;
}

.group-info p {
    color: #333;
    margin: 5px 0;
}

.group-info span {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.join-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: 2px solid #ff4757;
    padding: 8px 16px;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 2px 2px 0px #c44569;
}

.join-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #c44569;
}

/* Footer */
.fishspace-footer {
    background: linear-gradient(45deg, #2f3542, #57606f);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 3px solid #ff4757;
}

.fishspace-footer a {
    color: #ffd23f;
    text-decoration: none;
    font-weight: bold;
}

.fishspace-footer a:hover {
    color: #ffda44;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fishspace-logo h1 {
        font-size: 2rem;
    }
    
    .user-info {
        position: static;
        margin: 10px auto;
        justify-content: center;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-input {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .activity-item, .message-item, .group-item, .group-suggestion {
        flex-direction: column;
        text-align: center;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }
    
    .friends-grid {
        grid-template-columns: 1fr;
    }
    
    .fish-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-selector {
        flex-direction: column;
    }
}