/* Custom styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #111827;
    transition: background-color 0.3s ease;
}

/* Light mode styles */
.light-mode body {
    background-color: #f8fafc;
}

.light-mode .bg-gray-900 {
    background-color: #ffffff;
}

.light-mode .bg-gray-800 {
    background-color: #f1f5f9;
}

.light-mode .bg-gray-700 {
    background-color: #e2e8f0;
}

.light-mode .border-gray-700 {
    border-color: #cbd5e1;
}

.light-mode .border-gray-600 {
    border-color: #94a3b8;
}

.light-mode .text-white {
    color: #1e293b;
}

.light-mode .text-gray-300 {
    color: #475569;
}

.light-mode .text-gray-400 {
    color: #64748b;
}

.light-mode .text-blue-400 {
    color: #2563eb;
}

.light-mode .text-blue-400:hover {
    color: #1d4ed8;
}

.light-mode .hover\:text-white:hover {
    color: #1e293b;
}

.light-mode .hover\:text-blue-300:hover {
    color: #1d4ed8;
}

/* Brick Wall Layout - Picture Frame Style */
.brick-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: 
        radial-gradient(circle at 20% 20%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
    position: relative;
}

.brick-wall::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top, rgba(0,0,0,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0,0,0,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.light-mode .brick-wall {
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.01) 2px,
            rgba(0, 0, 0, 0.01) 4px
        );
}

.light-mode .brick-wall::before {
    background: 
        radial-gradient(ellipse at top, rgba(0,0,0,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0,0,0,0.02) 0%, transparent 50%);
}

/* Individual Brick Styling - Picture Frame */
.brick {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #1f2937, #374151);
    border: 8px solid #4b5563;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: rotate(-1deg);
    z-index: 2;
}

.brick:nth-child(even) {
    transform: rotate(1deg);
}

.brick:nth-child(3n) {
    transform: rotate(-0.5deg);
}

.brick:nth-child(4n) {
    transform: rotate(0.5deg);
}

.light-mode .brick {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border: 8px solid #60a5fa;
    color: #1e3a8a;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brick::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    pointer-events: none;
    border-radius: 4px;
}

.light-mode .brick::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0));
}

.brick:hover {
    transform: translateY(-8px) rotate(0deg) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: #60a5fa;
    z-index: 10;
}

.light-mode .brick:hover {
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: #2563eb;
}

.brick a {
    color: white;
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.light-mode .brick a {
    color: #1e3a8a;
}

.brick h3 {
    font-size: 1.3rem;
    margin: 0 0 8px 0;
    font-weight: bold;
    line-height: 1.2;
}

.brick p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 90%;
}

/* Empty Brick Styling */
.brick.empty {
    background: linear-gradient(135deg, #374151, #4b5563);
    border: 8px dashed #6b7280;
    cursor: pointer;
    transform: rotate(0deg);
}

.light-mode .brick.empty {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border: 8px dashed #94a3b8;
}

.brick.empty::after {
    content: '+';
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.light-mode .brick.empty::after {
    color: rgba(30, 58, 138, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .brick-wall {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
        padding: 20px 10px;
    }
    
    .brick {
        aspect-ratio: 3/2;
        padding: 16px;
        border-width: 6px;
    }
    
    .brick h3 {
        font-size: 1.1rem;
    }
    
    .brick p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .brick-wall {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .brick {
        aspect-ratio: 4/3;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #374151;
}

.light-mode ::-webkit-scrollbar-track {
    background: #e2e8f0;
}

::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

.light-mode ::-webkit-scrollbar-thumb {
    background: #94a3b8;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.light-mode ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
} 